bmn
17th December 2010, 18:09
Hey Everyone. i have written an application which collects, interprets and shows data. Obviously this application is using a few databases to store the data, and in this case it is two MySQL databases. the application is ready and running in the simulator (without database connection obviously), but when i run it on my test device (N900 - Maemo) nothing happens... -> could someone please just point me in the right direction, so i know what to do, and what my next steps are? :)
the warning i receive is:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: avalaibe drivers QSQLITE
here is my call to the database:
void mysql::connectToDatabase_vinge_db()
{
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("chopin.1go.dk");
db.setDatabaseName("vinge_db");
db.setUserName("xxxx");
db.setPassword("xxxx");
bool ok = db.open();
ok;
}
Best Regards
//René
the warning i receive is:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: avalaibe drivers QSQLITE
here is my call to the database:
void mysql::connectToDatabase_vinge_db()
{
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("chopin.1go.dk");
db.setDatabaseName("vinge_db");
db.setUserName("xxxx");
db.setPassword("xxxx");
bool ok = db.open();
ok;
}
Best Regards
//René