Qmysql Driver Not Loaded Windows 10

Posted on  by  admin
Qmysql Driver Not Loaded Windows 10 Rating: 9,0/10 7177 reviews

4) If i want to launch my program in a windows pc that have only mysql server installed, my exe program file and libmysql.dll are the unic file requested? 5) I use mingw 32 bit version, and i build 32 bit qmysql driver that allow to me to connect to mysql server 32 bit. You can do this, but it is not required.

Active11 months ago

Qsqlite Plugin

In Short: I am trying to link my Qt5.5 to MySQL but it is not working.

The long story begins when I tried to use MySQL as in:

But when I run my application, I get the following messages:

QSqlDatabase: QMYSQL driver not loaded

QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7

Loaded

At this point, I looked online to see how to fix this.

Then I found on Qt Documentation that I need to build the MySQL plugin. So, I followed the guidance:

  1. I donwloaded mysql-installer-community-5.7.19.0
  2. I tried to instal MySQL. However, during the installation, there was no Libs & Include Files Module to install !!
  3. But I continued the installation and run MySQL57 succesfully as a service locally.
  4. I could not of course build the plugin because there is not sqldrivers folder in my installed files.

I started looking all over the internet for solution. Then:

  1. According to this youtube answer, I needed to copy libmysql.dll from C:Program FilesMySQLMySQL Server 5.7bin to C:QtQt5.5.15.5mingw492_32bin

Qt Oracle Connection Example

I run my application, but again I have the same error !! So:

  1. I copied the file libmysql.dll from C:Program FilesMySQLMySQL Connector.C 6.1lib to the same location C:QtQt5.5.15.5mingw492_32bin,

However, again I have the same error.

I am now stuck, don't know what to do.

P.S.: I have sql in my .pro file in Qt-application

McLanMcLan
1,2796 gold badges30 silver badges59 bronze badges

2 Answers

Download the 32-bit version of libmysql.dll; check here for details: qt 5.8 sql connection error:QMYSQL driver not loaded on windows 10

Mohammad KananMohammad Kanan
2,87710 gold badges15 silver badges29 bronze badges

My version is QT 5.11.1. I met same problem.I copied libmysql.dll

from

Adobe flash for mac free vista 32 bit downloadVray Adv 3.00.03 For 3ds Max 2014. Download Music, TV Shows, Movies, Anime, Software and more. Compare and Choose One NowDownload Vray Max 2014 x64 torrent from games. Vray 3.00.03 3ds max 2014 64 bit https:. Autodesk 3ds max 2014 x64 crack.

C:Program FilesMySQLMySQL Server 5.7lib

to

C:QtQt5.11.15.11.1mingw53_32bin.

Finally,I succeeded.

Nic3500
3,7238 gold badges20 silver badges29 bronze badges

Mariadb Qt

mymymmymym

Not the answer you're looking for? Browse other questions tagged c++mysqlqt or ask your own question.

Qmysql Driver Not Loaded Windows 10Qmysql

My logfile shows the following lines:

2017-01-19 10:27:16.513 [debug] IMG: try to open 'C:/Temp/?????????????????.img' ..2017-01-19 10:28:39.295 [debug] close database '??? ??????????? (?????? ? ???????)'

Can it be that the logfile encoding is not set to UTF-8? Would it be possible to use this encoding (the missing text is Russian) in the logfile?

By the way:there appear the following lines in my logfile:

2017-01-19 10:28:22.238 [warning] QSqlDatabase: QMYSQL driver not loaded2017-01-19 10:28:22.238 [warning] QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7

How can it be that an available driver is not loaded (not important for me, just an attempt to use MySQL)?

Thanks.

Comments (5)

Coments are closed
Scroll to top