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. Ubuntu 32bit QT5.4.2 cannot connect to mysql
Qt 6.11 is out! See what's new in the release blog

Ubuntu 32bit QT5.4.2 cannot connect to mysql

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 2 Posters 1.1k 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.
  • S Offline
    S Offline
    ShawDa
    wrote on last edited by
    #1

    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
    QSqlDatabase: QMYSQL driver not loaded
    64bit QT can make drivers easily and replace ~/Qt5.4.2/5.4/gcc/plugins/sqldrivers/libqsqlmysql.so
    but i dont know how to remake 32bit QMYSQL driver and replace libqsqlmysql.so
    someone can help me? Thank you so much.

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

      Hi and welcome to devnet,

      The procedure is always the same, this time you have to make sure you have all development dependencies in 32bit.

      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
      1
      • S Offline
        S Offline
        ShawDa
        wrote on last edited by
        #3

        yes ,i have all development dependencies in 32bits.
        After cd :~/Qt5.4.2/5.4/gcc/plugins/sqldrivers and ldd libqsqlmysql.so
        I find libmysqlclient_r.so.16 => not found
        I search the internet. And there are someone can solve this problem by make QMYSQL driver and replace this file:~/Qt5.4.2/5.4/gcc/plugins/sqldrivers/libqsqlmysql.so
        But i have a 32bit QT, there are something different.

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

          No there's not. re-build the plugin with your installed MySQL development package.

          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
          • S Offline
            S Offline
            ShawDa
            wrote on last edited by
            #5

            OK I'll try.Thank U so much!

            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