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. [SOLVED] OpenSUSE12.3 Qt 5.1.1: QMYSQL-Driver is found valid, but not loaded
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] OpenSUSE12.3 Qt 5.1.1: QMYSQL-Driver is found valid, but not loaded

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.7k 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.
  • J Offline
    J Offline
    joergpauly
    wrote on last edited by
    #1

    Hello all,

    I've searched the forums over and over but can't find any hint for my problem.

    On an openSUSE 12.3 64bit system I installed Qt5.1.1 using the online installer. Everything seemed to work fine.

    When trying to add a default database connection using QSqlDatabase::addDatabase("QMYSQL") the output is as follows:
    "QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7"

    Hmmm... the driver seems to be where it belongs but can't be loaded?

    When I just change the driver type from QMYSQL to QSQLITE this message misses...

    Any hint?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you have the mysql client libraries installed on your system ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        joergpauly
        wrote on last edited by
        #3

        I'd think so.
        The mysqld runs on a remote computer but on my developing machine I have MySQL Workbench running in full featured mode beeing able to access the database on that remote server.

        Or is there anything else I should care about?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Run ldd on the plugin to see it if misses something

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • J Offline
            J Offline
            joergpauly
            wrote on last edited by
            #5

            Doing that it claimed that libmysqlclient_r.so.16 was missing.
            Somehow RPM missed to install the required soft link on libmysqlclient.so.
            Doing this manually solved this issue.

            Thank you very much!!!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You're welcome !

              You might be missing some dev package on your system that does add this soft link

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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