PDA

View Full Version : Qt5 Windows Deployment issue with MySql Driver



davethomaspilot
14th January 2014, 18:05
I can connect and issue queries to a MySql database with no issues on my Windows 7 development machine. But, when I try running on another Windows machine, I get:

"Driver not loaded Driver not loaded"

I have copied the plugins directory to a release directory on the target machine. The mysql dlls are in release/plugins/sqldrivers. That directory is in the path.

Do I also need to install some additional MySql client software on the target machine?

Thanks,

Dave Thomas

Added after 32 minutes:

Copying the libmysql.dll from my dev machine to the target machine seemed to fix the problem.

I guess that dll came from the Msql installation.

Should I actually go through the installation process too? I just want my Qt application to be able to issue queries--don't need the sql command prompt, etc.

ChrisW67
14th January 2014, 23:36
Just the DLL should be adequate. Put it in the sqldrivers folder next to the QMYSQL plugin and that folder should not need to be in the PATH.