×

Discussion Board

Results 1 to 2 of 2

Thread: MySQL and Maemo

Hybrid View

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Question MySQL and Maemo

    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:

    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE
    Is MySQL even supported in Maemo or am I doing something wrong? If it's not supported, is there another way to retrieve data from it?

    Thanks

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: MySQL and Maemo

    You should install libqt4-maemo5-sql-mysql package on the device.

    Also you should install MySQL plugin on you PC, if you want to debug there. I don't really know how you can do it for MADDE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×