This has been covered many times in this forum
You need to deploy the Qt MySQL plugin and the MySQL client library that it depends on along with your application. You deployed application should be arranged like this (Windows):
C:\Program Files\
Cool App Dir\
coolapp.exe
qtcore4.dll
qtgui4.dll
qtsql4.dll
...
imageformats\
qjeg4.dll
qgif4.dll
...
sqldrivers\
qmysql.dll // <<< the Qt Mysql plugin
libmysql.dll // <<< The MySQL client library from the MySql distribution
plugins\
// any custom plugin you have written for your program to load directly
C:\Program Files\
Cool App Dir\
coolapp.exe
qtcore4.dll
qtgui4.dll
qtsql4.dll
...
imageformats\
qjeg4.dll
qgif4.dll
...
sqldrivers\
qmysql.dll // <<< the Qt Mysql plugin
libmysql.dll // <<< The MySQL client library from the MySql distribution
plugins\
// any custom plugin you have written for your program to load directly
To copy to clipboard, switch view to plain text mode
There is no need to do anything with the Qt library path if you arrange it like that.
Bookmarks