QMYSQL not loading for others
-
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?
-
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.