

Run SETUP.EXE and choose "Custom Install". You need to get the MySQL installation files. How to Build the QMYSQL Plugin on Windows This is the explanation from the documentation how to do so: You would need to grab it somehow, or build it yourself. You could also put it into an sqldrivers folder beside your application, so somethiing like this: - yourapplication.exe The plugin should be available under the plugins/sqldrivers folder as a dll. You seem to be either missing the mysql plugin on your Windows or the proper mysql installation itself in which case you will need to get that done by installing all the necessary mysql libraries on your system where the plugin QtSql driver can recognize it. I copied the file libmysql.dll from C:\Program Files\MySQL\MySQL Connector.C 6.1\lib to the same location C:\Qt\Qt5.5.1\5.5\mingw492_32\bin,.I run my application, but again I have the same error !! So: According to this youtube answer, I needed to copy libmysql.dll from C:\Program Files\MySQL\MySQL Server 5.7\bin to C:\Qt\Qt5.5.1\5.5\mingw492_32\bin.I started looking all over the internet for solution. I could not of course build the plugin because there is not sqldrivers folder in my installed files.But I continued the installation and run MySQL57 succesfully as a service locally.However, during the installation, there was no Libs & Include Files Module to install !! I donwloaded mysql-installer-community-5.7.19.0.Then I found on Qt Documentation that I need to build the MySQL plugin. QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQ元 QODBC QODBC3 QPSQL QPSQL7Īt this point, I looked online to see how to fix this. The long story begins when I tried to use MySQL as in: QSqlDatabase theDatabase = QSqlDatabase::addDatabase("QMYSQL") īut when I run my application, I get the following messages: In Short: I am trying to link my Qt5.5 to MySQL but it is not working.
