Mysql Driver Not Loaded Windows 10


1) I assume that you already compiled your qsqlmysql dll. You should have the qmyssql.dll in the plugins/sqldrivers directory relative to your binary path of your executable.
QSqlDatabase: QMYSQL driver not loaded QSqlDatabase. Containing main.cpp, mysql.pro and readme. Im running on windows, but you should have the same path i assume. QMYSQL driver not loaded available drivers. QSqlDatabase: QMYSQL driver not loaded. IIRC the standard version of MySQL per Windows is built with. Game Interaktif Seri Anak Cerdas Akal Interaktif here.
2) You should also be careful not to mix release and debug dlls (the ones with the d at the end). 3) The static method addDatabase should be used this way: this->connection = QSqlDatabase::addDatabase(DRIVER, NAME); 4) Another point: The reason you get the error 'twice' (you actually just get two errors combined) is that connection.lastError().text() results a combined error message (appended) from the driver and from the connection attempt (see the API more more information about the differences). 5) When i took a closer look at your libs i could not see the non-debug version of libmysql.dll. If you run in release mode you must use the release library since the runtime will look for libmysql.dll and not libmysqld.dll. This will give you this error. I use msys2 with its qt5 package mingw64/mingw-w64-x86_64-qt5 (5.8.0-3) and looking at the plugins/sqldrivers/qsqlmysql.dll with the reveled dependency on the mariadb.dll, so I installed the mariadb client package: pacman -S mingw64/mingw-w64-x86_64-libmariadbclient and the dll appeared in /mingw64/bin/mariadb.dll, so I just copied the dll next to my app's exe file and it suddenly worked.
Even if you don't use msys2, you should still look at your qsqlmysql.dll with Dependency Walker and provide the missing dlls to your app. You can install or and just copy the dlls from the installed path.