PDA

View Full Version : QSqlDatabase: QMYSQL driver not loaded with certain OS



salamander
20th June 2017, 09:50
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.

Lesiok
20th June 2017, 13:48
Mysql libraries ? QMySql is only interface between Qt application and Mysql driver.

miked516
7th June 2019, 16:13
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.