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. Mysql can not work in other device without QT application
Forum Updated to NodeBB v4.3 + New Features

Mysql can not work in other device without QT application

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 969 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.
  • L Offline
    L Offline
    legendbabu
    wrote on last edited by
    #1

    I have a big problem here. I have installed the mysql driver and the program has been built and run in the Linux platform, everything is okay. However, when I moved the program to other embedded device which is without QT application, and QSqlDatabase::lastError shows "Driver not loaded Driver not loaded". I have put the file "libqsqlmysql.so" which is from Linux platform in the embedded device, but it can't work. Could anyone can help me solve this problem? Thanks.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Have you deployed the MySql client libraries for the target platform? The Qt MySql plugin you have deployed is built on top of the MySql libraries.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        legendbabu
        wrote on last edited by
        #3

        Sorry, it doesn't make sense to me...maybe explain more detail. Thanks for your help a lot.

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

          Hi and welcome to devnet,

          Like your application is linked to Qt, libqsqlmysql.so is linked against the MySql client library. You need to have it on your target also

          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