Results 1 to 5 of 5

Thread: Qt database connection: QMYSQL driver not loaded

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,233
    Thanks
    303
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt database connection: QMYSQL driver not loaded

    Thank you for your polite and instructive comments. We look forward to your next 2,247 helpful posts over the next 8 years

  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 database connection: QMYSQL driver not loaded

    The Qt Mysql plugin should be placed in a directory "sqldrivers" that lives next to the main project executable. This is the app-specific default location searched for SQL plugins. The Mysql runtime library, which is not part of Qt, can be placed anywhere the standard Windows DLL search would look when it loads the plugin dll (on a dev machine this is often on the %PATH). For deployment it is usually most convenient to put it in the "sqldrivers" directory too.
    http://doc.qt.io/qt-5/windows-deploy...tml#qt-plugins

    If you do not have a full Mysql install to work from the Mysql Connector for C should contain the run time library:
    http://dev.mysql.com/downloads/connector/c/

Similar Threads

  1. QMYSQL driver not loaded
    By shadowCODE in forum Installation and Deployment
    Replies: 3
    Last Post: 21st December 2014, 19:21
  2. QMYSQL driver not loaded
    By robotics in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2011, 12:43
  3. QMYSQL driver not loaded
    By cydside in forum Qt Programming
    Replies: 4
    Last Post: 31st March 2010, 02:18
  4. QMYSQL driver not loaded
    By akhila in forum Newbie
    Replies: 1
    Last Post: 22nd February 2010, 18:24
  5. QMYSQL driver not loaded
    By sepehr in forum Qt Programming
    Replies: 12
    Last Post: 11th January 2009, 20:15

Tags for this Thread

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.