I tried to access MySQL from Python 3.3 with the following methods:
import mysql.connector config = { \'user\': \'###\', \'password\': \'******\', \'h
I was getting this error because I had quotes in my config file.
[mysql] username: 'uuuu' password: 'pppp' host: 'localhost' database: 'ffffdd'
gave me the error. However, removing the quotes worked:
[mysql] username: uuuu password: pppp host: localhost database: ffffdd