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. QSqlDatabase: QMYSQL driver not loaded available drivers: QMYSQL

QSqlDatabase: QMYSQL driver not loaded available drivers: QMYSQL

Scheduled Pinned Locked Moved Solved General and Desktop
mysqldrivernot loaded
27 Posts 5 Posters 27.2k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 28 Dec 2016, 22:27 last edited by
    #21

    @EXTREME Hi and welcome to devnet,

    Did you also deploy the MySQL client .dlls with your application ?

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

    E 1 Reply Last reply 29 Dec 2016, 20:51
    0
    • S SGaist
      28 Dec 2016, 22:27

      @EXTREME Hi and welcome to devnet,

      Did you also deploy the MySQL client .dlls with your application ?

      E Offline
      E Offline
      EXTREME
      wrote on 29 Dec 2016, 20:51 last edited by
      #22

      Hi @SGaist, thanks.

      Yes, there are the qsqlmysql.dll on sqldrivers folder, and I copied manually the libmysql.dll to the exe folder and the sqldriver folder.

      Thing is, the app run on my computer, where I'm compiling and deploying from the deploied folder but I copied the whole program folder to my girlfriend's pc and I get the 'Driver not loaded' error.

      I also installed the MySQL Connector C on it, but.. nothing.

      Just to make sure I have those dlls on sqldriver folder:
      libmysql
      qsqlite
      qsqlmysql
      qsqlmysql4
      qsqlodbc
      qsqlpsql

      The program just doesn't connect to the database because of drivers.
      I can't figure out what to do now :(

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 29 Dec 2016, 21:00 last edited by
        #23

        Run Dependency Walker on the plugin to see if it finds anything.

        You can also start the application in command line window and use QT_DEBUG_PLUGINS environment variable. That should give you more hints about what is going on.

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

        E 1 Reply Last reply 30 Dec 2016, 00:05
        0
        • S SGaist
          29 Dec 2016, 21:00

          Run Dependency Walker on the plugin to see if it finds anything.

          You can also start the application in command line window and use QT_DEBUG_PLUGINS environment variable. That should give you more hints about what is going on.

          E Offline
          E Offline
          EXTREME
          wrote on 30 Dec 2016, 00:05 last edited by
          #24

          @SGaist said in [Solved] QSqlDatabase: QMYSQL driver not loaded available drivers: QMYSQL:

          Run Dependency Walker on the plugin to see if it finds anything.

          You can also start the application in command line window and use QT_DEBUG_PLUGINS environment variable. That should give you more hints about what is going on.

          Running Dependency Walker on the exe ?
          If yes, here is it:
          alt text

          Maybe are the microsoft runtimes missing? Or anything else? I saw that the dll IESHIMS.dll was missing, I found it on Internet Explorer's folder and copied to the exe folder, but still not working.. the app loads but with the 'Driver not found' error..

          Thats turning my hairs into grey lol

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 30 Dec 2016, 21:51 last edited by
            #25

            No, not the executable, the Qt MySQL plugin.

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

            E 1 Reply Last reply 30 Dec 2016, 23:24
            0
            • S SGaist
              30 Dec 2016, 21:51

              No, not the executable, the Qt MySQL plugin.

              E Offline
              E Offline
              EXTREME
              wrote on 30 Dec 2016, 23:24 last edited by
              #26

              @SGaist said in [Solved] QSqlDatabase: QMYSQL driver not loaded available drivers: QMYSQL:

              No, not the executable, the Qt MySQL plugin.

              The qsqlmysql.dll ? If yes..
              alt text
              PS: I already have these dlls on the exe folder. Tried to copy to the sqldrivers folder, but got the same error "Driver not loaded".

              1 Reply Last reply
              0
              • E Offline
                E Offline
                EXTREME
                wrote on 31 Dec 2016, 20:41 last edited by
                #27

                God... finally got it working!!!

                Tried many libmysql.dlls and got one that works.

                Thanks @SGaist for your time :)

                1 Reply Last reply
                0

                21/27

                28 Dec 2016, 22:27

                • Login

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