I've got an issue with my code. For some reason upon trying to connect my Python code with the MySQL database
I get the following error :
File "C:\Users\Sofia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\mysql\connector\connection.py",
line 213, in _auth_switch_request
raise errors.get_exception(packet) mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied
for user 'root'@'localhost' (using password: YES)
I've tried to add a port into MySQL
and to grant access to my user however that didn't work, I'd really appreciate if you could give me a step by step instruction on how to fix this issue.
Thanks!