Is there a module written purely in Python that will allow a script to communicate with a MySQL database? I\'ve already tried MySQLdb without success. It requires too much: GCC,
As far as I know there is no direct alternative. The only thing I can think of is to use ODBC instead, via pyodbc. The MySQL site has an ODBC connector you can download. But I've never used this approach myself, so I can't say how well it will work.
Without a doubt MySQLdb is the best solution, but if you can't use it…
If you have libmysqlclient
.[so
|dll
], you could access it directly using ctypes module.