Reputation: 337
I'm already build and install the MySql drive like here.. But still I got the error message QMYSQL driver not loaded. Now it;s say MySql as a available driver. I'm using 64bit windows, Qt creator version 32-bit, mingw81_64 and MySql 64 bit Error is,
" QMYSQL driver not loaded. available drivers: QSQLITE QMARIADB QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7"
Upvotes: 1
Views: 1023
Reputation: 1153
Probably you don't have the libmysql.dll (or libmariadb.dll) in your path. The mechanism is that the MySQL database plugin dll is dynamically loaded runtime, and even if the database plugin itself is present (therefore listed as available), it might fail to load if the libmysql.dll (or libmariadb.dll) is not found.
Upvotes: 0
Reputation: 550
This question is already answered here. Enough details are provided there. In brief:
Edit 1:
One more thing: when you download different versions of libmysql.dll, do as follows:
This is the most reliable way to add a library to your project. Hope this helps.
Upvotes: 0