QMYSQL not loading for others
-
wrote on 14 Dec 2012, 09:47 last edited by
I'm trying to get my application working for others. I send them the exe with the following .dlls: QtCore4.dll, QtGui4.dll, QtSql4.dll.
It runs and doesn't crash, but it fails to connect to the mysql database because it says the drivers don't load. I made an information box appear that tells them what drivers are loading and it just comes up with 'None'. It works fine for me with both the debug and the release version (I'm sending them the release version). What's up?
-
wrote on 14 Dec 2012, 10:36 last edited by
You should include the qmysql.dll plugin to your package.
You can find it in [your_qt_directory]/plugins/sqldriversA word of advice:
Place this dll on a folder named "sqldrivers" inside your app directory.
-
wrote on 14 Dec 2012, 15:06 last edited by
Actually I did send the entire sqldrivers folder. It still didn't work for the other computer. What else could it be?
-
wrote on 2 Jan 2013, 19:09 last edited by
The qsqlmysql4.dll plugin needs libmySQL.dll.
You have to provide both files together with your exe.