Home > Mobile >  Qt to connect the mysql database suggest Driver not the loaded Driver not the loaded
Qt to connect the mysql database suggest Driver not the loaded Driver not the loaded

Time:10-11

CodePudding user response:

Qt default not mysql library, you have to download a mysql for libmysql. DLL, pay attention to distinguish between 32-bit and 64 - bit

CodePudding user response:


Now this is wrong

CodePudding user response:


I put this in the qt

CodePudding user response:

QT is no default with mysql but QT Qsqlite database for his own, I also consider using mysql before but like you such a trouble, so use the QT's own database directly, this is I write you can consult: https://blog.csdn.net/pyuxing/article/details/82903767

CodePudding user response:

Now use the database is mysql

CodePudding user response:

32-bit QT connection 64 mysql database driver file libmysql. DLL libmysql. Lib
The who has handed out thank you

CodePudding user response:

https://mp.csdn.net/postedit/83071741

CodePudding user response:

Qt lack libmysql, DLL
The attention is not the same as the 32 - and 64 DLL

From mysql D:/mysql/mysql - 5.6.24 - win32 \ lib this is I found your mysql directory

Copy to D: \ QT5.9.3\5.9.3 \ msvc2015 \ bin copy to your directory qt directory

Here, perform if or quote above mistakes don't sit down a cigarette
The mysql uninstall

Remove the mysql service after unloading clean

Once again at this time for a cigarette out with

CodePudding user response:

Tip your project proposal using 32-bit

CodePudding user response:

refer to the eighth floor qq_41880267 response:
qt lack libmysql, DLL
The attention is not the same as the 32 - and 64 DLL

From mysql D:/mysql/mysql - 5.6.24 - win32 \ lib this is I found your mysql directory

Copy to D: \ QT5.9.3\5.9.3 \ msvc2015 \ bin copy to your directory qt directory

Here, perform if or quote above mistakes don't sit down a cigarette
The mysql uninstall

Remove the mysql service after unloading clean

Once again at this time for a cigarette out done

Smoke is finished, the problem is not solve,
  •  Tags:  
  • Qt
  • Related