Edit : My database is now connected I uninstalled and reinstalled the mysql-connector using anaconda prompt
Previously it was Bad Handshake
and then later ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
i reinstalled a different version of sql and now it says
AttributeError: module 'mysql.connector' has no attribute 'connect'
Attribute error is coming from an out of date package missing an attribute.
Try running:
pip install mysql-connector-python
I'm having different errors while trying to connect python to mysql