PDA

View Full Version : Sql Driver: MYSQL not loaded



stilgar
10th June 2010, 22:15
Some weeks ago I had a problem on my pc with Qt MySql driver : here (http://www.qtcentre.org/threads/29712-MySql-driver-problem?highlight=qmysql)
I fixed this problem by copying libmysql.dl in my "executable" folder as suggested.
Now I have to migrate on another Pc where Qt are not installed.
I copied the executable and all the .dll dependencies in a folder on that Pc and I'm back to the initial problem. In fact the program run correctly, but when I try to connect to database I got the same message of "QMYSQL not loaded".
Any idea?

saa7_go
11th June 2010, 05:40
this is my file/directory structure when i distribute my application:

MyApp.exe
QtCore4.dll
QtGui4.dll
QtSql4.dll
libmySQL.dll
mingwm10.dll
libgcc_s_dw2-1.dll

sqldrivers\
----- qsqlmysql4.dll

stilgar
15th June 2010, 10:35
Putting qsqlmysql4.dll in sqldrivers folder works!.
Thank you ;)