I started my python script today on Win7 x64 instead of WinXP x86 and the
MySQLdb is not working anymore :(
Can somebody help me, or tell me how i can activate the mysql option "skip-
resolve-name" in MySQLdb?
And if I use the IP, instead of the hostname, still same problem. Rubberducky
is pingable and works with WinXP
without any problems :(
o = MySQLdb.connect(host="rubberducky", user="test_user", passwd="test_pw", db="test_db")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\site-packages\MySQLdb\__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "C:\Python26\lib\site-packages\MySQLdb\connections.py", line 188, in __in
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1042, "Can't get hostname for your address"
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.