[maemo-developers] How to use MySQL with Maemo 5?
From: Sascha Mäkelä sascha.makela at gmail.comDate: Tue Mar 30 08:57:10 EEST 2010
- Previous message: Meego and mafw
- Next message: Fwd: gsoc project 2010 !
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: QSQLITE
Is 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/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100330/9bce91f0/attachment.htm>
- Previous message: Meego and mafw
- Next message: Fwd: gsoc project 2010 !
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
