have you tried to install libqt4 mysql plugin ?
This should help in case you havent already seen it
http://doc.trolltech.com/4.6/sql-driver.html#qmysql 
http://doc.trolltech.com/4.6/sql-driver.html#qmysql 

 http://doc.trolltech.com/4.6/sql-driver.html#qmysql 
----- Original Message -----
From: Sascha Mäkelä
Sent: 03/30/10 06:57 AM
To: maemo-developers
Subject: How to use MySQL with Maemo 5?

I'm trying to retrieve data from a MySQL server. I use the following example 
code (with some slight modifications):

Code: QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL"); 
db.setHostName("bigblue"); db.setDatabaseName("flightdb"); 
db.setUserName("acarlson"); db.setPassword("1uTbSbAs"); bool ok = db.open();But 
I get the following error:

Quote:
 QSqlDatabase: QMYSQL driver not loaded 
QSqlDatabase: available drivers: QSQLITEIs MySQL even supported in Maemo or am 
I doing something wrong? I also found the following two links:

http://qt.nokia.com/doc/4.6/sql-driver.html 
http://qt.nokia.com/doc/4.6/sql-driver.html 

http://qt.nokia.com/doc/4.6/install-x11.html 
http://qt.nokia.com/doc/4.6/install-x11.html 

But I'm not quite sure where I should install these "drivers". Should I install 
them in my Windows computer, where I'm using MADDE and Qt Creator (well, 
actually I'm using now the Qt Creator 2.0 Technology Preview, so I'm not quite 
sure if it's using MADDE any more)? Or should I install them on the target 
N900? Or both? Or am I completely on the wrong tracks here?

Any help would be greatly appreciated. 

Cheers,
Sascha
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to