Discussion Board

Results 1 to 2 of 2

Thread: MySQL and Maemo

  1. #1
    Registered User Sasler's Avatar
    Join Date
    Jan 2010
    Posts
    272
    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
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved