Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMYSQL Driver not available in the QT 5.13.2 and QT 5.14
Qt 6.11 is out! See what's new in the release blog

QMYSQL Driver not available in the QT 5.13.2 and QT 5.14

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 3.2k Views 2 Watching
  • 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.
  • AmrCoderA Offline
    AmrCoderA Offline
    AmrCoder
    wrote on last edited by
    #1

    Hello I want to connect to MySQL database so I used the old way to connect to it in the old version as I have QT 5.11.1 the last version I used to connect to MySQL, now when I tried with a simple connection I got this

    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
    ERROR OpenDatabase:  "Driver not loaded Driver not loaded"
    

    in the past I got this error but I see QMYSQL and QMYSQL3 I just add the dll of libmysql and it works, now the driver not found in both versions, and when I go to the Plugin DLLs file I did not find the qsqlmysql.dll and qsqlmysqld.dll which make the driver load, so anywhere I can download those dlls to make it work on QT 5.13.2?
    What I tried so far I installed QT 5.11.1 as the old version I have on my pc and try to use the qsqlmysql.dll and qsqlmysqld.dll but I got incompatible dll error, so I don't know what is the reason of not include those dlls in the main package, and if possible to find them compailed anywhere to download them direct.
    Thanks in advance.

    1 Reply Last reply
    1
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      This question was already asked many times here - there is a search function for this... The driver is not provieded anymore it the pre-compiled versions due to license issues. You have to compile it by yourself. See https://doc.qt.io/qt-5/sql-driver.html

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      4
      • AmrCoderA Offline
        AmrCoderA Offline
        AmrCoder
        wrote on last edited by
        #3

        Thank you very much, sorry it was a long time did not use this modul and not check what happened in the new versions

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Lachrymology
          wrote on last edited by
          #4

          This post helped me a lot beside the main docs:
          https://forum.qt.io/topic/92626/cant-connect-to-mysql-database-qmysql-driver-not-loaded/20
          Maybe it helps you too. ^^

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved