Home > Mobile >  Qt5 connection is not always an error on the database
Qt5 connection is not always an error on the database

Time:11-22

CodePudding user response:

Those online from the mysql driver DLL file into the path of the qt is futile, don't know what went wrong, have a big and good intention person to help

CodePudding user response:

Look at my blog, https://mp.csdn.net/console/editor/html/17993225

CodePudding user response:

What do you use the MYSQL version? Now website version very troublesome, in addition to libmysql. DLL, still need the PATH to access to the runtime VS2015 and openssl

CodePudding user response:

Use depend to see the plugins/qsqlmysql. DLL,

CodePudding user response:

To connect mysql have to compile drive, qt with mysql driver project, C: \ qt \ Qt5.14.1\5.14.1 \ Src \ qtbase \ Src \ plugins \ sqldrivers \ mysql
You need to download mysql SDK package, modify the drive engineering project files, as follows:
After successful compilation (install qt on disk C drive) will be a plugin \ sqldrivers folder, put the file into the corresponding inside qt directories below, such as: C: \ qt \ Qt5.14.1\5.14.1 \ mingw73_32 \ plugins \ sqldrivers, and combine the development kit libmysql. The DLL into the C: \ qt \ Qt5.14.1\5.14.1 \ mingw73_32 \ bin

CodePudding user response:

reference 1st floor weixin_44226477 response:
online those from the mysql driver DLL file into the path of the qt is futile, you don't know what went wrong, there are big and good intention person to help you


Online said method seems to be right, is the DLL into the path of the qt... I win2008, is so of,

As time went by, the impression is not deep, I remember the MYSQL connection engine, do not use the version of C + +, C language version... , I was in C + + version didn't make sense, in a BBS, too saw a tall person, using C language version... Just now,

CodePudding user response:

Libmysql. DLL has different versions, are you sure you are using the correct version? Do you want to use your connection MySQL database libmysql. DLL, not from the Internet, libmysql. DLL in the MySQL database directory, you search, use the libmysql. DLL
  •  Tags:  
  • Qt
  • Related