Solved Qt win10 QMYSQL driver not loaded
-
Hi, i've installed on a new develope machine with Windows 10:
- Qt 5.12.5
- MySQL 5.7.28 ;
- MySQL Connector C 6.1
When i try to use MySQL i've the hated message "QMYSQL Driver not loaded"
in command prompt:
Seems that MYSQL was detected but
when i lauch my application..Application Output (with Environment Variable set to 1)
i've checked and qsqlmysql.dll was in C:\Qt\5.12.5\mingw73_32\plugins\sqldrivers
folder..any ideas of how to resolve this problem??
Thanks in advance.
-
As always (and which could also be found be the search function) make sure that the plugin finds all needed dlls by using e.g. Dependency Walker.
-
and then??
Seem that can't find many dll.. -
So you should make sure that the dlls can be found be e.g. copying the needed mysql libs to the sql plugin folder or adding them to PATH env var.
-
@Christian-Ehrlicher
Ok all works now..
Thank you very much! -
The mysql libraries are .lib or other. I try but.. I downloaded depedency walker. When I open the DLL it is put for example API-MS-WIN-CORE-APPCOMPAT-L1-1-0.DLL is not findable. When I run a search in windows search I can not find it. That's why I'm asking for an example. I miss a lot of other DLLs but how do I know where they are?
I am a beginner, sorry for the questions that seem simple to you. They are not really for me! -
@Raftapss said in Qt win10 QMYSQL driver not loaded:
What files did you move and where did you move them?
So hard to read?
copying the needed mysql libs to the sql plugin folder or adding them to PATH env var.
So why don't you look with dependency walker by yourself to see which mysql libs are needed - learning by doing is really a good idea...
-
The mysql libraries are .lib or other. I try but i whose anderstant. I downloaded depedency walker. When I open the DLL it is put for example API-MS-WIN-CORE-APPCOMPAT-L1-1-0.DLL is not findable. When I run a search in windows search I can not find it. That's why I'm asking for an example. I miss a lot of other DLLs but how do I know where they are?
I am a beginner, sorry for the questions that seem simple to you. They are not really for me! -
You should look for mysql libraries, not for ones from windows.