QSqlDatabase: QMYSQL driver not loaded available drivers: QMYSQL
-
Hi @SGaist, thanks.
Yes, there are the qsqlmysql.dll on sqldrivers folder, and I copied manually the libmysql.dll to the exe folder and the sqldriver folder.
Thing is, the app run on my computer, where I'm compiling and deploying from the deploied folder but I copied the whole program folder to my girlfriend's pc and I get the 'Driver not loaded' error.
I also installed the MySQL Connector C on it, but.. nothing.
Just to make sure I have those dlls on sqldriver folder:
libmysql
qsqlite
qsqlmysql
qsqlmysql4
qsqlodbc
qsqlpsqlThe program just doesn't connect to the database because of drivers.
I can't figure out what to do now :( -
Run Dependency Walker on the plugin to see if it finds anything.
You can also start the application in command line window and use QT_DEBUG_PLUGINS environment variable. That should give you more hints about what is going on.
-
@SGaist said in [Solved] QSqlDatabase: QMYSQL driver not loaded available drivers: QMYSQL:
Run Dependency Walker on the plugin to see if it finds anything.
You can also start the application in command line window and use QT_DEBUG_PLUGINS environment variable. That should give you more hints about what is going on.
Running Dependency Walker on the exe ?
If yes, here is it:
Maybe are the microsoft runtimes missing? Or anything else? I saw that the dll IESHIMS.dll was missing, I found it on Internet Explorer's folder and copied to the exe folder, but still not working.. the app loads but with the 'Driver not found' error..
Thats turning my hairs into grey lol
-
No, not the executable, the Qt MySQL plugin.
-
@SGaist said in [Solved] QSqlDatabase: QMYSQL driver not loaded available drivers: QMYSQL:
No, not the executable, the Qt MySQL plugin.
The qsqlmysql.dll ? If yes..
PS: I already have these dlls on the exe folder. Tried to copy to the sqldrivers folder, but got the same error "Driver not loaded".