


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 helpCodePudding user response:
Look at my blog, https://mp.csdn.net/console/editor/html/17993225CodePudding 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 opensslCodePudding 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 \ mysqlYou 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: