Cant connect to mysql database: QMYSQL driver not loaded
-
@hobbyProgrammer Did you log out and log in after changing PATH?
wrote on 29 Nov 2019, 11:27 last edited by@jsulm open the cmd again or log out as a computer user?
-
@jsulm open the cmd again or log out as a computer user?
@hobbyProgrammer Log out as user and login again, then check in terminal as @cdwijs suggested.
-
@jsulm open the cmd again or log out as a computer user?
wrote on 29 Nov 2019, 11:29 last edited by@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?! -
wrote on 2 Dec 2019, 10:07 last edited byThis post is deleted!
-
wrote on 24 Dec 2020, 13:35 last edited by
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.htmlI 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!
-
-
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.htmlI 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!
@Back2coding downloading .dlls from 3rd party website like that is usually a bad idea. You do not know what might lurk in there.
-