Unsolved QSqlDatabase: QMYSQL3 driver not loaded
-
Hi,
I am trying to use the SqlBrowser example with MySQL that I have installed in my laptop. The example works fine with the SQLite driver but when telling it to use MySQL I continuously get the error:QSqlDatabase: QMYSQL3 driver not loaded
Any ideas?
I am very new to QT...
Thanks!!
Juan
-
Check that :
- mysql client is installed
- you can find the mysql plugin library in the plugin directory of your Qt installation folder
- if plugin still doesn't work, check that the plugin doesn't miss any dependancies (ldd, dependancyWalker...)
This is quite a recurrent topic, the problem (and its solution) is highly depending of your OS, please check similar posts using the search tool of this forum. Here are a few of them :
- https://forum.qt.io/topic/63335/qsqldatabase-qmysql-driver-not-loaded/22
- https://forum.qt.io/topic/60281/qsqldatabase-qmysql-driver-not-loaded-qsqldatabase-available-drivers-qsqlite-qmysql
- https://forum.qt.io/topic/62141/qtsql-driver-not-loaded-using-osx
- https://forum.qt.io/topic/62141/qtsql-driver-not-loaded-using-osx