I also tried to put the.lib files as libraries in the Qt project, but still nothing, it doesnt work, would you know how to fix it Thank you.QSqlDatabase: available drivers: QSQLITE QMARIADB QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7.Take care in asking for clarification, commenting, and answering.Basically I went to QtCreator, added a new library to the project ( C:Program FilesMySQLMySQL Connector C 6.1libmysql.lib ) and now everything works properly.
Provide details and share your research But avoid Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. Not the answer youre looking for Browse other questions tagged c qt5 mysql-connector or ask your own question. For this purpose, I am trying to use MySQL (with the related QMYSQL driver). ![]() After calling QSqlDatabase::drivers(), I found out that I have the drivers available. Below is the output ( int the show-more section of the message-box). Qsqldatabase Mysql Not Loaded Windows .Dll In TheYou should have the qmyssql.dll in the pluginssqldrivers directory relative to your binary path of your executable. In the pluginssqldrivers there must only be the qsqlmysql.dll. Did you compile the lib by yourself. Its pretty easy. Take a look at qt-project.orgdocqt-5sql-driver.html. Qsqldatabase Mysql Not Loaded Windows Install MySQL ServerYou need to first install MySQL server then MySQL Client from package manager. I had this problem in XP and Dependency Walker didnt show any missing or incompatible.dll file and after installing those runtime libs my problem was solved. Not the answer youre looking for Browse other questions tagged c mysql qt or ask your own question.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |