vs Qt mysql Packers Driver not loaded Driver not loaded

When developing Qt vs mysql connection under the program, MySQL development process operating without problems, but later discovered they could not connect MySQL package, package installed on other computers, such as libmysql.dll required dll exe files are copied to the same directory , and it has been found to prompt driver not load driver not load, after the last day of testing, found the need to create sqldrivers directory under the same directory packaged exe program, and the msvc201X_64 \ plugins \ qsqlmysql.dll under sqldrivers directory in Qt ( release version) [If the package is debud version, copy qsqlmysqld.dll (debug version)] files are copied to the new sqldrivers directory, and then run the program again, driver not load error does not occur, the database connection is successful, the program runs normally.

 

Guess you like

Origin www.cnblogs.com/herd/p/11570272.html