thecodemonkey86 / qt_mysql_driver

Typical symptom: QMYSQL driver not loaded. Solution: get pre-built Qt SQL driver plug-in required to establish a connection to MySQL / MariaDB using Qt. Download qsqlmysql.dll binaries built from official Qt source code
Other
417 stars 58 forks source link

the version of the sqldrivers in "qsqlmysql.dll driver 5.13.2 + libmysql MySQL 8.0" is actually 5.14.2 ! #35

Closed ccoob closed 1 year ago

thecodemonkey86 commented 1 year ago

Could you please clarify which files are incorrect and post the link(s) here. Your last post and the issue title don't match. Thank you very much

ccoob commented 1 year ago

Qt_SQL_driver_5.13.2_MinGW_7.3_64 the drivers in the folder "sqldrivers" are for Qt 5.14.2 and the file "libmysql.dll" is for Qt 5.13.2. When you try to use both of them, it reports a error like "Cannot mix incompatible Qt library (version 0x50d02) with this library (version 0x50e02)"

Qt_SQL_driver_5.14.2_MinGW_64 And the drivers in this link are for Qt 5.13.2 while the title is "5.14.2". I don't know the version of the "libmysql.dll" in this link. But it can't be for MySQL 8.0.

thecodemonkey86 commented 1 year ago

As you can see in the following screenshots, the versions of the drivers are correct: grafik

grafik

grafik

I admit that the libmysql.dll in the 5.14.2 package is very old. Please use a newer one that comes with a current MySQL installation

ccoob commented 1 year ago

Sorry,it is my bad. I didn't know how to see the version of the library. At first I downloaded the 5.14.2 package and it didn't work (I didn't know the libmysql.dll is too old). And then I downloaded the 5.13.2 package and it still didn't work(because the driver version was not fit). Finally I mixed them up, and it miraculously succeeded. I thought it was the drivers fault, but actually it wasn't. Could you please delete this issue? It is a disgrace. Sorry for wasting your time.