MySQL hardcoding?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Apr 21 01:15:11 EDT 2008


En Thu, 17 Apr 2008 15:41:49 -0300, <marexposed at googlemail.com> escribió:

> I've got this error (see the path in last line)
>
>     db=MySQLdb.connect(host='localhost',use_unicode = True, charset = "Windows-1251",user='root',passwd='12',db='articulos')
> OperationalError: (2019, "Can't initialize character set Windows-1251 (path: C:\\mysql\\\\share\\charsets\\)")
>
> The truth of the matter is, MySQL is not installed in that path, but into Program Files.
> I don't know where the hardcoding is, but it is certainly somewhere. Except MySQL is reporting a wrong installation path.
> I haven't found any other topic in the list about this problem.

Looks like a configuration problem in MySQL itself, unrelated to Python. See the my.ini file in MySQL installation directory.

-- 
Gabriel Genellina




More information about the Python-list mailing list