Results 1 to 3 of 3

Thread: QSqlDatabase: QMYSQL driver not loaded with certain OS

  1. #1
    Join Date
    Jun 2017
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default QSqlDatabase: QMYSQL driver not loaded with certain OS

    My Qt App is already deployed and running/connecting just fine to the DB with my PC which is Windows 10 and other PC which is Windows 7(doesn't have QT installed), but somehow when I try to run the exe to a another PC which has Windows Server 2012 r2 standard or
    Windows Server 2008 as OS it gives me an error for some reason. Here's my log:

    2017-06-20 01:17:01.000] [] [info] {Debug}: "01:17:01"
    [2017-06-20 01:17:01.038] [] [info] {Warning}: QSqlDatabase: QMYSQL driver not loaded
    [2017-06-20 01:17:01.038] [] [info] {Warning}: QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
    [2017-06-20 01:17:01.039] [] [info] {Debug}: QSqlError("", "Driver not loaded", "Driver not loaded")
    Do you have any idea? Do I need to install something or missing plug-in to the server OS? Please help.Newbie here. Thanks.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSqlDatabase: QMYSQL driver not loaded with certain OS

    Mysql libraries ? QMySql is only interface between Qt application and Mysql driver.

  3. #3
    Join Date
    Feb 2017
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QSqlDatabase: QMYSQL driver not loaded with certain OS

    Did this issue ever get resolved. I am having the same issue where my application works perfectly on windows 7 or windows 10 but as soon as I try to install on a Windows Server 2012 R2 it gets a driver not loaded.

Similar Threads

  1. QSqlDatabase: QMYSQL driver not loaded
    By prachik in forum Newbie
    Replies: 1
    Last Post: 13th January 2014, 21:40
  2. Need Help:QSqlDatabase: QMYSQL driver not loaded
    By i4ba1 in forum Qt Programming
    Replies: 1
    Last Post: 9th January 2011, 19:39
  3. QSqlDatabase: QMYSQL driver not loaded
    By earthling in forum Qt Programming
    Replies: 13
    Last Post: 4th December 2010, 16:19
  4. QSqlDatabase: QMYSQL driver not loaded
    By lise in forum Newbie
    Replies: 3
    Last Post: 1st June 2010, 14:09
  5. Replies: 6
    Last Post: 28th April 2009, 07:58

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.