Windows Deployment
-
wrote on 28 Jun 2024, 08:47 last edited by
Hi to all,
i've created an application that works correctly and connecting to remote mysql database (Windows 10)
i've deployed my application following this step:cd .. app exe file path..
windeployqt . --quick --no-translation
(i've also tried with --compiler-runtime option but with same result..)on my pc work fine but when i copy the app folder to another pc
application run correctly but give me "Drivers not loaded" errorthe dll seems to be ok (i've checked the dependency but everything is ok)
Any ideas?
Thanks in advance -
Hi to all,
i've created an application that works correctly and connecting to remote mysql database (Windows 10)
i've deployed my application following this step:cd .. app exe file path..
windeployqt . --quick --no-translation
(i've also tried with --compiler-runtime option but with same result..)on my pc work fine but when i copy the app folder to another pc
application run correctly but give me "Drivers not loaded" errorthe dll seems to be ok (i've checked the dependency but everything is ok)
Any ideas?
Thanks in advance@TheCipo76 said in Windows Deployment:
"Drivers not loaded" error
Can you be more specific? What drivers?
Is it about MySQL plug-in loading? If so, did you also deploy the MySQL client library? -
@TheCipo76 said in Windows Deployment:
"Drivers not loaded" error
Can you be more specific? What drivers?
Is it about MySQL plug-in loading? If so, did you also deploy the MySQL client library? -
Windeploy can't help here. You have to do it manually.
-
Windeploy can't help here. You have to do it manually.
wrote on 28 Jun 2024, 09:18 last edited by@Christian-Ehrlicher how can i do it? can you help me with an example?
-
@Christian-Ehrlicher how can i do it? can you help me with an example?
@TheCipo76 Just copy the MySQL client library next to your executable
-
@TheCipo76 Just copy the MySQL client library next to your executable
-
yes, that one
-
@TheCipo76 said in Windows Deployment:
mysqlclient.lib
This is not a dll so what do you want with this?
RTM: https://doc.qt.io/qt-6/sql-driver.html#qmysql -
wrote on 28 Jun 2024, 09:38 last edited byThis post is deleted!
-
@TheCipo76 said in Windows Deployment:
mysqlclient.lib
This is not a dll so what do you want with this?
RTM: https://doc.qt.io/qt-6/sql-driver.html#qmysqlwrote on 28 Jun 2024, 09:48 last edited by TheCipo76@Christian-Ehrlicher i don't know.. i'm just following @jsulm
This is app folder
and this is sqldrivers folder
-
@Christian-Ehrlicher i don't know.. i'm just following @jsulm
This is app folder
and this is sqldrivers folder
@TheCipo76 Sorry, didn't realized you posted lib, of course you need to deploy dll. lib is for linking, not running.
-
@TheCipo76 Sorry, didn't realized you posted lib, of course you need to deploy dll. lib is for linking, not running.
-
@TheCipo76 You just copy it to your deployed application folder
-
@TheCipo76 You just copy it to your deployed application folder
-
wrote on 1 Jul 2024, 01:51 last edited by Bonnie 7 Jan 2024, 01:55
It should be
libmysql.dll
. You already have it in your sqldrivers folder, move it to the app folder.
Also, where does this dll file come from? If it is from mysql package there is a chance that it also need msvc and openssl runtime to load.
If you still cannot load the plugin, you need to check that with DependencyWalker -
It should be
libmysql.dll
. You already have it in your sqldrivers folder, move it to the app folder.
Also, where does this dll file come from? If it is from mysql package there is a chance that it also need msvc and openssl runtime to load.
If you still cannot load the plugin, you need to check that with DependencyWalker@Bonnie Unfortunately Dependency Walker does not help when the DLL is loaded dynamically at runtime :(
Otherwise you are correct.
Regards
-
wrote on 2 Jul 2024, 15:48 last edited by
I've removed and reinstalled MySql connector and
re-build the drivers and now all works
Thanks to all -
-
@Bonnie Unfortunately Dependency Walker does not help when the DLL is loaded dynamically at runtime :(
Otherwise you are correct.
Regards
1/19