First, you can refer to: https://www.cnblogs.com/flipped/p/6810216.html
Thank you very much at the same time also admire this blogger.
This website installs and configures the MySQL, inside content is very whole, but has a little insufficient, is according to his step, does not have the accident the word will encounter a small problem, is
When the code you write in vs2015 is completely free of problems, you will find yourself jumping out of a confusing error message as soon as you run it:.
But the problem seems to be on the mysqlcppconn-7-vs14.dll, but in fact, you need to check the C:\Windows\System32 folder for the existence of these two libraries:
Libeay32.dll and Ssleay32.dll (altogether three libraries need to be placed in the folder, and the last one is Mysqlcppconn-7-vs14.dll).
Plus, it works perfectly.
Note: The above three libraries are generally in \lib64 (64-bit files) [Lib (32-bit files)] in the directory of MySQL connector files you downloaded.
Hope to help everyone! If this post does not solve your problem, please send me your question, we solve together, progress together! Thank you!
vs2015 configure MySQL to run flawlessly with C + + connectivity