Results 1 to 4 of 4

Thread: QMYSQL driver not loaded

  1. #1
    Join Date
    Oct 2014
    Location
    Cameroon
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default QMYSQL driver not loaded

    Running Qt 5.4 (Based on Qt 5.4.0 (MSVC 2010, 32 bit)).
    MySQL Community 5.6

    I could not succeed compiling the Qt Source to get the dll. So i downloaded them from here
    https://github.com/Mashpy/Qt-MySQL-Driver-For-Windows
    and put them in as followed by here
    http://seppemagiels.com/blog/create-...er-qt5-windows

    I still get the errors
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
    QSqlError("", "Driver not loaded", "Driver not loaded")

    Please any one.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QMYSQL driver not loaded

    Do you have all the dependencies for QMYSQL? In particular the mysql client library?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2014
    Location
    Cameroon
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QMYSQL driver not loaded

    yes. I have mysqlclient.lib in C:\Program Files\MySQL\MySQL Server 5.6\lib.
    Do i have to put it somewhere else?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QMYSQL driver not loaded

    You have to put it where your application can find it, e.g. in the directory containing your application executable.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QMYSQL driver not loaded
    By stef1570 in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2011, 05:59
  2. QMYSQL driver not loaded
    By robotics in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2011, 12:43
  3. QMYSQL driver not loaded
    By cydside in forum Qt Programming
    Replies: 4
    Last Post: 31st March 2010, 02:18
  4. QMYSQL driver not loaded
    By akhila in forum Newbie
    Replies: 1
    Last Post: 22nd February 2010, 18:24
  5. QMYSQL driver not loaded
    By sepehr in forum Qt Programming
    Replies: 12
    Last Post: 11th January 2009, 20:15

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.