Results 1 to 2 of 2

Thread: QMYSQL driver not loaded

  1. #1
    Join Date
    Dec 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default QMYSQL driver not loaded

    Hello,

    I am currently developing a simple app that requires interaction with a MySQL database. I already installed MySQL and the x32 C++ Connector. Tried copying its libraries into the project folder, copied the sqldrivers folder from Qt plugins, installed the x64 C++ Connector and copied the libraries again. Still, I receive the one error to rule them all:

    "QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7"

    Do you have any insight as to why this happens?
    I am programming on Windows 7 x64. The examples that came with Qt are running fine, but they all use SQLite, which I can't use.

    Thanks in advance!

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QMYSQL driver not loaded

    When the driver is listed but cannot be loaded it usually means that a dependency of the driver plugin is not found at runtime.

    I.e. Qt finds the plugin, hence it being listed, but it cannot load it.

    Most common cause is a missing mysql client library compatible to the one qsqmysql was compile against.

    You write that you copied the C++ connector, but did you copy the base mysql client library?

    Cheers,
    _

Similar Threads

  1. CentOS 6: QMYSQL driver not loaded, available driver: (none)
    By mp33919 in forum Installation and Deployment
    Replies: 1
    Last Post: 19th October 2016, 15:46
  2. QMysql Driver not loaded
    By Cerberus in forum Qt Programming
    Replies: 2
    Last Post: 1st November 2015, 19:55
  3. QMYSQL driver not loaded
    By shadowCODE in forum Installation and Deployment
    Replies: 3
    Last Post: 21st December 2014, 19:21
  4. QMYSQL driver not loaded
    By stef1570 in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2011, 05:59
  5. QMYSQL driver not loaded
    By cydside in forum Qt Programming
    Replies: 4
    Last Post: 31st March 2010, 02:18

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.