These DLLs must be located in %PATH% or in current directory. The "qsqlmysql.dll" additionally requires 3 DLLs: libmysql.dll, libssl*.dll, libcrypto*.dll (names of the last two vary for 32-/64-bit architectures). It means that "qsqlmysql.dll" was found, but its dependencies were not. QSqlDatabase: available drivers: QMARIADB QMYSQL QSQLITE QODBC QPSQL ![]() Or if you use PySide6, into one of /sqldrivers/ or /lib/site-packages/PySide6/plugins/sqldrivers/.ĬASE #2: you execute QSqlDatabase::addDatabase("QMYSQL"), but you get the following error: Note, qsqlmysql.dll must be built using MSVC (32-bit in your case), not MinGW, if you use MSVC compiler in Qt itself.Īn alternative fix is to put qsqlmysql.dll into Qt/6.*.*/msvc2019_*/plugins/sqldrivers/, The fix is to define the environment variable QT_PLUGIN_PATH and put qsqlmysql.dll into %QT_PLUGIN_PATH%/sqldrivers/ It means that "qsqlmysql.dll" (a plugin for Qt platform) was not found. ![]() QSqlDatabase: available drivers: QSQLITE QODBC QPSQL ![]() CASE #1: you execute QSqlDatabase::addDatabase("QMYSQL"), but you get the following error:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |