Results 1 to 2 of 2

Thread: Qt5 Windows Deployment issue with MySql Driver

  1. #1
    Join Date
    Jun 2012
    Posts
    219
    Thanks
    28
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt5 Windows Deployment issue with MySql Driver

    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.
    Last edited by davethomaspilot; 14th January 2014 at 17:05.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt5 Windows Deployment issue with MySql Driver

    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.

  3. The following user says thank you to ChrisW67 for this useful post:

    davethomaspilot (16th January 2014)

Similar Threads

  1. Mysql Driver build Issue
    By davethomaspilot in forum Installation and Deployment
    Replies: 1
    Last Post: 4th January 2014, 18:02
  2. MySQL driver issue
    By Momergil in forum Qt Programming
    Replies: 4
    Last Post: 3rd March 2012, 07:42
  3. mysql driver not loaded after deployment
    By tpf80 in forum Newbie
    Replies: 4
    Last Post: 4th September 2011, 10:12
  4. QT/mySQL deployment issue
    By smtgra011 in forum Installation and Deployment
    Replies: 4
    Last Post: 1st July 2007, 20:31
  5. Deployment of QT4 App that uses the MySql driver
    By kroenecker in forum Installation and Deployment
    Replies: 5
    Last Post: 20th June 2006, 08:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.