Last edited by Hughen; 26th February 2013 at 13:30.
Hi for me on windows 7 it works like this:
Driver not loaded means the sqldrivers folder cannot be located -> if i rename my sqldrivers folder i will get this error...
my folder/path structur:
libmysql.dll
urProgramm.exe
otherQtDlls.dll
sqldrivers\qsqlmysql4.dll
sqldrivers is a folder in the "exe" directory.
That mean put the "libmysql.dll to ur exe and other qtdll´s like qtguidll.... put the sqldrivers Folder in the path where ur exe is located.
I hope this helps you out of this.
Greets Anenja
Thanks.
just now I also use your advice to get access to load drivers, and it works well.
Thanks again.
Hyghen, where have you get that your programm supports "QSQLITE" "QMYSQL3" "QMYSQL" "QODBC3" "QODBC"? If it is on the "other" computer, then qsqlmysql4.dll is places correctly.
Have you tried to use Dependency Walker to see what library is actually missing?
Of course, I get them by my computers(Qt 4.8.4+MySQL 5.5).
And all problems is solved, the qslqmysql4.dll is in sqldrivers file, the libmysql.dll must be in the program file.
In other words, libmysql.dll copy to root directory of main_program_run.exe
Thanks your help.
Nice to you.
Bookmarks