Results 1 to 3 of 3

Thread: Qt MySQL drivers deployed with the application

  1. #1
    Join Date
    Jul 2011
    Location
    On Earth
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Qt MySQL drivers deployed with the application

    Hi,
    I have my qt application that I want to deploy. The application works fine in the development PC but when I want to run it in another PC where qt is not installed its unable to load mysql drivers. I have read http://doc.qt.nokia.com/4.7-snapshot...t-windows.html for deploying my app in windows environments. The problem is with mysql drivers!
    I have placed libmysql.dll and /sqldrivers/ folder (which contains mysql drivers) in the /plugins folder which is in the same directory as my app as indicated in the above link.
    In the development PC, mysql is installed in C:\MySQL\ but in other PCs, it is in C:\Program Files\MySQL\; can these be the reason. How can I make my deployed app be able to load mysql drivers?

  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: Qt MySQL drivers deployed with the application

    You need to deploy the Qt MySQL plugin into the "sqldrivers" subdirectory (name is something like qsqlmysql.dll). This is in addition to the MySQL library that the plugin will depend on. See here for a picture of what your deployment should look like.

    Also, Dependency Walker can be useful in determining what is missing.

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

    manaila (3rd May 2012)

  4. #3
    Join Date
    Jul 2011
    Location
    On Earth
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default [SOLVED] Qt MySQL drivers deployed with the application

    Thank you, it worked!

Similar Threads

  1. Installing MySQL drivers for QT
    By yakuzan in forum Installation and Deployment
    Replies: 3
    Last Post: 18th December 2011, 23:30
  2. Does anyone have drivers to MySQL for QT 4.7.4
    By TomASS in forum Qt Programming
    Replies: 0
    Last Post: 5th October 2011, 00:14
  3. Mysql drivers
    By thahir1986 in forum Newbie
    Replies: 2
    Last Post: 26th October 2010, 08:07
  4. Installing QT in windows with mysql drivers
    By roncriss in forum Installation and Deployment
    Replies: 0
    Last Post: 20th November 2009, 04:45
  5. mysql drivers for QT-4.5.2
    By jsmith in forum Qt Programming
    Replies: 1
    Last Post: 31st August 2009, 12:33

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.