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

error while trying to connect database to qt program

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 708 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.
  • A Offline
    A Offline
    Aita KANE
    wrote on 28 Mar 2018, 22:59 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.

    J R 2 Replies Last reply 29 Mar 2018, 05:39
    0
    • A Aita KANE
      28 Mar 2018, 22:59

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 29 Mar 2018, 05:39 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
        28 Mar 2018, 22:59

        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.

        R Offline
        R Offline
        raven-worx
        Moderators
        wrote on 29 Mar 2018, 06:44 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

        1/3

        28 Mar 2018, 22:59

        • Login

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