I tried to access MySQL from Python 3.3 with the following methods:
import mysql.connector
config = {
\'user\': \'###\',
\'password\': \'******\',
\'h
I would like to add one more possibilities for the cause: version mismatch between your MySQL and mysql-connector-python
. This problem happened to me when I was using MySQL 5.6.24-72.2-log
and mysql-connector-python==8.0.13
. Downgrading to mysql-connector-python==8.0.5
resolved the issue. Though I was using Python 2, hopefully this would provide more clues for debugging.