QMYSQL driver not loaded
I have installed Qt SDK and developed a simple Library GUI program with it. However when I try to connect to a database I get the following error:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
I can't figure out what this means or what should I do.
In my opinion, you do not have SqLite installed on system, or it is installed in such way that Qt does not see it. Some information can be found "here":http://doc.qt.digia.com/latest/sql-driver.html#qmysql
It means that Qt does not include a driver to talk to mysql. There are lots of topics on the mysql driver here, search the forums, I am pretty sure that will turn up a description of how to build and set up that plugin.
I found this site that helped me to build the plugin:
I put the dll files into the C:\QtSDK\Desktop\Qt<version>\mingw\plugins\sqldrivers but still Qt says it can't find the driver. :/