Mysql not defined when compiling mysql driver
-
@kshegunov What do you call the client library? The
libmysql.dll
?@Thombou said in Mysql not defined when compiling mysql driver:
What do you call the client library? The libmysql.dll?
Yes!
-
@Thombou said in Mysql not defined when compiling mysql driver:
What do you call the client library? The libmysql.dll?
Yes!
wrote on 20 Apr 2020, 14:22 last edited by Thombou@kshegunov I downloaded it from here https://dev.mysql.com/downloads/windows/installer/8.0.html.
As it is installed in theProgram Files
and not theProgram Files (x86)
directory I'd say it's 64bits...
Plus, this is what I installed so:
-
@kshegunov I downloaded it from here https://dev.mysql.com/downloads/windows/installer/8.0.html.
As it is installed in theProgram Files
and not theProgram Files (x86)
directory I'd say it's 64bits...
Plus, this is what I installed so:
wrote on 20 Apr 2020, 14:31 last edited by@Thombou It says X64 under the architecture tab so should be the correct version.
-
wrote on 20 Apr 2020, 14:35 last edited by
Also, if you go into the "Add" tab, then expand MySQL Servers, then expand MySQL Server, then choose MySQL Server 8.0 you get the option to choose the availiable architectures :)
-
wrote on 20 Apr 2020, 15:41 last edited by
Yes that's what I di not understand. it seems that I have the correct version but a wrong version of the
libmysql.dll
... Anyway, i hope that it is fixed now, and that I won't have other surprises like that later on.
Thank you very much for your help! It is much appreciated! -
Yes that's what I di not understand. it seems that I have the correct version but a wrong version of the
libmysql.dll
... Anyway, i hope that it is fixed now, and that I won't have other surprises like that later on.
Thank you very much for your help! It is much appreciated!wrote on 20 Apr 2020, 16:03 last edited by@Thombou Yeah it is very frustrating.. hope all goes well with the next version!
Glad i could help :) -
wrote on 21 Apr 2020, 08:55 last edited by
Shall I report a bug somewhere of shall I suppose the problem is on my side?
-
@Thombou said in Mysql not defined when compiling mysql driver:
Shall I report a bug somewhere of shall I suppose the problem is on my side?
The latter. (And don't feel bad, it happens all the time, that's why this user forum exists)
-
@Thombou said in Mysql not defined when compiling mysql driver:
Shall I report a bug somewhere of shall I suppose the problem is on my side?
The latter. (And don't feel bad, it happens all the time, that's why this user forum exists)
wrote on 21 Apr 2020, 13:50 last edited by@kshegunov Ok that's what I thought too :) haha. It's by doing that we learn!
Cheers :) -
wrote on 22 Apr 2020, 08:52 last edited by Thombou
For those who are interested, I opened the 2 dlls with the dependancy walker. It turns out that the dll provided by mysqlserver required 2 additional dlls
LIBSSL-1_1X64.DLL
andLIBCRYPTO-1_1-x64.DLL
which were not found. In the dll file that if working, those 2 additional dlls are not required. When placing those 2 DLLs in the folder of the executable everything works perfectly. This is the root cause of the problem. -
For those who are interested, I opened the 2 dlls with the dependancy walker. It turns out that the dll provided by mysqlserver required 2 additional dlls
LIBSSL-1_1X64.DLL
andLIBCRYPTO-1_1-x64.DLL
which were not found. In the dll file that if working, those 2 additional dlls are not required. When placing those 2 DLLs in the folder of the executable everything works perfectly. This is the root cause of the problem.wrote on 22 Apr 2020, 08:59 last edited by@Thombou very helpful information indeed! :)
What if you download those dlls to your exe lib and (there you did it already in the edit I see :p) hehe..
Very good, then you have complied the library successfully! Congratz :)
38/39