Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot install driver: QSqlDatabase: QMYSQL driver not loaded
Forum Updated to NodeBB v4.3 + New Features

Cannot install driver: QSqlDatabase: QMYSQL driver not loaded

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 197 Views
  • 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 Offline
    J Offline
    JosefSelajo
    wrote on last edited by
    #1

    Hello,

    I'm trying to access a MySQL database on another sever.
    I followed some tutorials for code to access the database.
    But everytime I'm trying to run my application, the error
    "QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7"
    keeps appearing.
    I followed the "How to Build the QMYSQL Plugin on Windows" Turorial from your website.
    I'm using mingw and everytime this error appears "mingw32-make: *** No rule to make target 'sub-mysql'. Stop."
    And when I run the install command, nothing changed. It copied some files, but the QMYSQL driver is still not loaded in Qt Creator.

    I'm using Qt Creator 5.14.2 and the mingw-version is the one, that was installed with the Qt installer.

    Someone else had the issue?
    Can please someone help me?

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

      @JosefSelajo said in Cannot install driver: QSqlDatabase: QMYSQL driver not loaded:

      I'm using mingw and everytime this error appears "mingw32-make: *** No rule to make target 'sub-mysql'. Stop."

      Follow the documentation and make post the output when something goes wrong.

      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
      0

      • Login

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