Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

MYSQL.CONNECTOR ERROR (3 replies)

$
0
0
I am trying to connect mysql(8.0) and python(3.8) using mysql.connector but getting the error:

mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Windows 10

same code working for pymysql

the code used:
import mysql.connector as sql s=sql.connect(host='localhost',user='root',passwd='12345') I haven't tried anything as of now since i didn't find any relevant help for my situation.

Viewing all articles
Browse latest Browse all 384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>