471,073 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

Re: MySQL hardcoding?

En Thu, 17 Apr 2008 15:41:49 -0300, <ma********@googlemail.comescribió:
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

Jun 27 '08 #1
0 875

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by mikey | last post: by
reply views Thread by Mike Chirico | last post: by
3 posts views Thread by Angelos | last post: by
2 posts views Thread by trihanhcie | last post: by
3 posts views Thread by marexposed | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.