python-3.xmysql-connector-python

Python MySQL connector segmenation fault on Windows


I have a clean system and installed Python and mysql-connector-python via pip. But as soon as I add attributes to

mysql.connector.connect

I get a segfault.

So just

mysql.connector.connect()

works fine (of course it doesn't connect but it doesn't throw an exception either) while

mysql.connector.connect(
     host="localhost"
)

gives me a segfault.

What do I miss?


Solution

  • The problem seems to be the 64bit version of Python. After installing the 32bit version the MySQL connector worked.