I installed "mysql-installer-community-8.0.16.0.msi". Everything went fine during installation. I could even able to create a new database and tables for my project. I am using it in c++. Compilation and linking all went fine. But while running my program, during load time it fails with error "The ordinal 3283 could not be located in the dynamic link library libmysql.dll"
I tried various things based on recommendations..
Installed almost all the versions of "Microsoft Visual C++ 2015-2019 Redistributable for both x86 and x64 version.
Uninstalled and reinstalled the MySQL
Even loaded VS 2017 as previously I had loaded VS 2019.
But none of the above solved my problem.
Any help will be greatly appreciated...
Finally, I am able to crack it. First checked the dependency using below command.
c:/> dumpbin /dependents "C:\Program Files\MySQL\MySQL Server 8.0\lib\libmysql.dll"
The problem was about loading these two dlls.
SSLEAY32.dll
LIBEAY32.dll
It was happening due to the path under environment variable set for intel driver, which also has these dlls. e.g.
C:\Program Files\Intel.... ...
After removing the above entries from the path, it is able to load these 2 DLLs properly from below location.
C:\Program Files\MySQL\MySQL Shell 8.0\bin\ssleay32.dll C:\Program Files\MySQL\MySQL Shell 8.0\bin\libeay32.dll
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments