Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QSqlDatabase: QMYSQL3 driver not loaded

    General and Desktop
    2
    2
    303
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jdent last edited by

      Hi,
      I am trying to use the SqlBrowser example with MySQL that I have installed in my laptop. The example works fine with the SQLite driver but when telling it to use MySQL I continuously get the error:

      QSqlDatabase: QMYSQL3 driver not loaded

      Any ideas?

      I am very new to QT...

      Thanks!!

      Juan

      1 Reply Last reply Reply Quote 0
      • Charby
        Charby last edited by Charby

        Check that :

        • mysql client is installed
        • you can find the mysql plugin library in the plugin directory of your Qt installation folder
        • if plugin still doesn't work, check that the plugin doesn't miss any dependancies (ldd, dependancyWalker...)

        This is quite a recurrent topic, the problem (and its solution) is highly depending of your OS, please check similar posts using the search tool of this forum. Here are a few of them :

        • https://forum.qt.io/topic/63335/qsqldatabase-qmysql-driver-not-loaded/22
        • https://forum.qt.io/topic/60281/qsqldatabase-qmysql-driver-not-loaded-qsqldatabase-available-drivers-qsqlite-qmysql
        • https://forum.qt.io/topic/62141/qtsql-driver-not-loaded-using-osx
        • https://forum.qt.io/topic/62141/qtsql-driver-not-loaded-using-osx
        1 Reply Last reply Reply Quote 1
        • First post
          Last post