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. error while trying to connect database to qt program
Forum Updated to NodeBB v4.3 + New Features

error while trying to connect database to qt program

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 732 Views 1 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.
  • A Offline
    A Offline
    Aita KANE
    wrote on last edited by
    #1

    hello guys can someone help me please, i'm trying to connect my database to qt but everytime i compile ther is this ibformation that pop up :
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
    Failed to connect to database.

    i seached on google but no solutions worked for me can someone please help me, it's an assignment due tomorrow.

    jsulmJ raven-worxR 2 Replies Last reply
    0
    • A Aita KANE

      hello guys can someone help me please, i'm trying to connect my database to qt but everytime i compile ther is this ibformation that pop up :
      QSqlDatabase: QMYSQL driver not loaded
      QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
      Failed to connect to database.

      i seached on google but no solutions worked for me can someone please help me, it's an assignment due tomorrow.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Aita-KANE Which OS? Which Qt version? Do you have MySQL client library?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Aita KANE

        hello guys can someone help me please, i'm trying to connect my database to qt but everytime i compile ther is this ibformation that pop up :
        QSqlDatabase: QMYSQL driver not loaded
        QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
        Failed to connect to database.

        i seached on google but no solutions worked for me can someone please help me, it's an assignment due tomorrow.

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @Aita-KANE
        i guess it's the issue that has been already discussed several times here in the forum.

        You can set QT_DEBUG_PLUGINS=1 env variable and check the log output. It will probably fail to load the Qt mysql plugin because it is linking to the mysql lib, when it can't be found it can't be loaded.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        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