<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Arial">Makes sense now... looks like this
is going to be more involved than I hoped. Thanks for the help!!<br>
<br>
</font></font><br>
Christian Caron wrote:
<blockquote cite="mid:4625836F-F8E9-4991-8076-F6CCB1B4BA0C@fattoc.com"
type="cite">Phil has control over PyQt. I'm talking about compiling
mysql support into Trolltech's err I mean Nokia's Qt.
<br>
<br>
On Sep 7, 2009, at 3:39 PM, Scott Ballard wrote:
<br>
<br>
<blockquote type="cite">According to Phil, he added MySQL support to
the last build...
<br>
<br>
>>I'm just wondering why the MySQL drivers can't be compiled into
the PyQt Windows binary installer, instead we have to compile our own
Qt/PyQt with the >>MySQL and/or PostGres drivers.
<br>
>They are in the current installers (for Python v2.6 and v3.1). I'm
not
<br>
>updating the installer for Python v2.5.
<br>
<br>
>Phil
<br>
<br>
<br>
<br>
Christian Caron wrote:
<br>
<blockquote type="cite">By default, QtSql does't have support for
mysql. You have to compile it by specifying the right options when
./configuring Qt for build.
<br>
<br>
Christian
<br>
<br>
On Sep 7, 2009, at 3:29 PM, Scott Ballard wrote:
<br>
<br>
<blockquote type="cite">Hey list,
<br>
<br>
Sorry to ask about this again, but I never got it working and was
pulled off onto something else. Now I have time to look into it again.
<br>
<br>
I can't seem to get the qmysql driver to work with the QtSQL module in
PyQt 4.5.4 and Python 2.6.2 on Windows XP SP2.
<br>
<br>
What exactly is required to make a connection to a MySql database from
PyQt? I have Wamp installed, running MySql and am able to connect to it
using the MySQLdb module.
<br>
<br>
The qmysql4.dll is in the
Python26\Lib\site-packages\PyQt4\plugins\sqldrivers.
<br>
<br>
Here's the important output:
<br>
2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
<br>
PYQT_VERSION_STR: 4.5.4
<br>
QSqlDatabase: QMYSQL driver not loaded
<br>
QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC QPSQL7 QPSQL
<br>
<br>
Has anyone gotten this working? Are there any 3rd party DLLs that need
to be installed? Any hints would be welcome!
<br>
<br>
Cheers,
<br>
-Scott
<br>
_______________________________________________
<br>
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
<br>
</blockquote>
<br>
<br>
</blockquote>
</blockquote>
<br>
<br>
</blockquote>
</body>
</html>