I've got third-party Python script, it looks like it has to connect to MySQL database by means of SQLObject
package.
Considering I've provided correct DSN, the script throws
sqlobject.dberrors.OperationalError: Unknown database 'dbname?charset=utf8'
I've traced the problem to this piece of code
ar['charset'] = 'utf8'
conn = connectionForURI(uri, **ar)
which calls this function.
And it connects fine when ar['charset'] = 'utf8'
is commented, so no query string is provided.
I have this issue on Windows,
- MySQL 5.5.25
- Python 2.7.2
- MySQL-python 1.2.5
- SQLObject 3.0.0a1dev-20150327
What exactly is going on there, and how it is supposed to be fixed? Does the problem lie in dependencies or the script itself?