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. Cant connect to mysql database: QMYSQL driver not loaded
Forum Updated to NodeBB v4.3 + New Features

Cant connect to mysql database: QMYSQL driver not loaded

Scheduled Pinned Locked Moved Solved General and Desktop
46 Posts 12 Posters 50.0k Views 4 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 jsulm
    29 Nov 2019, 11:27

    @hobbyProgrammer Did you log out and log in after changing PATH?

    H Offline
    H Offline
    hobbyProgrammer
    wrote on 29 Nov 2019, 11:27 last edited by
    #41

    @jsulm open the cmd again or log out as a computer user?

    J J 2 Replies Last reply 29 Nov 2019, 11:29
    0
    • H hobbyProgrammer
      29 Nov 2019, 11:27

      @jsulm open the cmd again or log out as a computer user?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 29 Nov 2019, 11:29 last edited by
      #42

      @hobbyProgrammer Log out as user and login again, then check in terminal as @cdwijs suggested.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • H hobbyProgrammer
        29 Nov 2019, 11:27

        @jsulm open the cmd again or log out as a computer user?

        J Offline
        J Offline
        JonB
        wrote on 29 Nov 2019, 11:29 last edited by
        #43

        @hobbyProgrammer
        In the time it takes to wait for an answer, and in order to be simply confident everything sees the new environment variable, isn't it just quicker to completely log out & in or even reboot and then you know for sure where you are?!

        1 Reply Last reply
        1
        • H Offline
          H Offline
          hobbyProgrammer
          wrote on 2 Dec 2019, 10:07 last edited by
          #44
          This post is deleted!
          1 Reply Last reply
          0
          • B Offline
            B Offline
            Back2coding
            wrote on 24 Dec 2020, 13:35 last edited by
            #45

            Hello,

            I have gone through the same issue. there are 2 libmysql.dll libraries version. One for 32 and the other for 64 bits.

            These 2 files are both available inhere :
            https://www.dll-files.com/libmysql.dll.html

            I advise you to do the following.

            • create a folder in the C drive and name it as you wish and set the PATH to include that folder.

            • Step number 2, reload your system.

            • Step number 3 copy one of the 2 files libmysql.dll in that folder and try to run your binary if this doesnt work then try the second one.

            This should work!

            have a good day!

            S 1 Reply Last reply 24 Dec 2020, 13:47
            -1
            • B Back2coding
              24 Dec 2020, 13:35

              Hello,

              I have gone through the same issue. there are 2 libmysql.dll libraries version. One for 32 and the other for 64 bits.

              These 2 files are both available inhere :
              https://www.dll-files.com/libmysql.dll.html

              I advise you to do the following.

              • create a folder in the C drive and name it as you wish and set the PATH to include that folder.

              • Step number 2, reload your system.

              • Step number 3 copy one of the 2 files libmysql.dll in that folder and try to run your binary if this doesnt work then try the second one.

              This should work!

              have a good day!

              S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 24 Dec 2020, 13:47 last edited by
              #46

              @Back2coding downloading .dlls from 3rd party website like that is usually a bad idea. You do not know what might lurk in there.

              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
              3

              • Login

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