-
Notifications
You must be signed in to change notification settings - Fork 243
Open
Description
here is my issue
as per my project i need to connect to the mysql but unable to connect
when im trying to connect it is showing the below:
C:\Users\D. ABHINAYA\Downloads\Chatbot\Chatbot>python Main.py
- Serving Flask app 'Main'
- Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. - Running on http://127.0.0.1:5000
Press CTRL+C to quit
127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /index HTTP/1.1" 200 -
127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/tra.jpg HTTP/1.1" 304 -
127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/default.css HTTP/1.1" 304 -
127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/img02.jpg HTTP/1.1" 304 -
127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/img01.jpg HTTP/1.1" 304 -
127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/img03.jpg HTTP/1.1" 304 -
127.0.0.1 - - [20/Jun/2024 23:46:50] "GET /Signup HTTP/1.1" 200 -
127.0.0.1 - - [20/Jun/2024 23:46:50] "GET /static/default.css HTTP/1.1" 304 -
[2024-06-20 23:47:12,033] ERROR in app: Exception on /SignupAction [POST]
Traceback (most recent call last):
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 2529, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "Main.py", line 303, in SignupAction
con = pymysql.connect(host='127.0.0.1',port = 3306,user = 'root', password = 'root', database = 'negotiate',charset='utf8')
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql_init_.py", line 94, in Connect
return Connection(*args, **kwargs)
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 325, in init
self.connect()
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 599, in connect
self._request_authentication()
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 861, in _request_authentication
auth_packet = self._read_packet()
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 684, in _read_packet
packet.check_error()
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\protocol.py", line 220, in check_error
err.raise_mysql_exception(self._data)
File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")
127.0.0.1 - - [20/Jun/2024 23:47:12] "POST /SignupAction HTTP/1.1" 500 -
Metadata
Metadata
Assignees
Labels
No labels