×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    22

    Using MySQL databases?

    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é

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Using MySQL databases?

    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: avalaibe drivers QSQLITE
    What part of the above did you not understand?

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Using MySQL databases?

    Quote Originally Posted by mavi85bmn View Post
    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é
    you are getting the Error because the QMYSQL is not bundled as default in Qt For Symbian SDK or Nokia Qt SDK. you might want to complie it from sources with appropriate configuration flags.

Similar Threads

  1. Databases to use with Pys60
    By ataliba in forum Symbian
    Replies: 7
    Last Post: 2007-07-12, 15:04
  2. Question About Databases
    By flipflop82 in forum Symbian
    Replies: 1
    Last Post: 2005-02-16, 13:08
  3. Creating and Delete databases
    By -kevbo- in forum Symbian
    Replies: 1
    Last Post: 2001-12-13, 12:54

Posting Permissions

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