[PyQt] Can't connect to mysql on Windows
phil at riverbankcomputing.com
Thu Nov 26 14:54:59 GMT 2009
On Thu, 26 Nov 2009 11:26:54 -0300, Mario Daniel Carugno
<carugnom at gmail.com> wrote:
> 2009/11/26, Phil Thompson <phil at riverbankcomputing.com>:
>> On Thu, 26 Nov 2009 10:59:21 -0300, Mario Daniel Carugno
>> <carugnom at gmail.com> wrote:
>>> Hi there,
>>> I've downloaded the latest pyqt for python 2.5
>>> The notes says that this binary package has support for MySql:
>>> "Qt (with database support for MySQL, PostgreSQL, SQLite3 and ODBC)"
>>> But my program do not connect using QMYSQL or QMYSQL3 drivers (with
>>> QODBC3 runs fine)
>>> Looking at C:\Python25\Lib\site-packages\PyQt4\plugins\sqldrivers
>>> there's no library for mysql
>>> Thats why my program do not connect, i guess.
>>> So, do pyqt4.4.3 have mysql support or not ?
>> To be honest, I can't remember.
>>> Do i have to compile that driver ?
>> ...and Qt and PyQt.
> Thank you for the fast response Phil
> Do you know if the version for python2.6 has that driver compiled ?
> Compiling Qt, PyQt and QMysql seems too much to get just a driver...
> Does anybody have a compiled qmysql driver (for XP) to send me please ?
It's not as simple as that because of the way that PyQt and Qt are built -
hence the need to rebuild everything.
More information about the PyQt