

I don't even know where to start explaining to be honest. Set: Configuration Properties > VC++ Directories Libea圓2.lib mysqlclient.lib mysqlcppconn8-static-mt.lib mysqlcppconn-static-mt.lib sslea圓2.lib %(AdditionalDependencies) Std::cout Input > Additional Dependecies:

MConnection = mDriver->connect("host", "username", "password") MDriver = get_driver_instance() //or use: new MySQL_Driver() If you are not maintaining an existing application, use the new xdevapi API.Ĭreate a new project and put the following in main.cpp #define WIN32_LEAN_AND_MEAN Note: This test is for the JDBC style API. The library is located at: C:\mysql-connector-c++-8.0.15\jdbc\install\lib\mysqlcppconn-static-mt.libĬ:\mysql-connector-c++-8.0.15\Release\mysqlcppconn8-static-mt.lib Open MySQL_CONCPP.sln build for Release 圆4

Static release library: C:\mysql-8.0.15\archive_output_directory\Release\mysqlclient.libĬopy C:\mysql-8.0.15-dbg\archive_output_directory\Debug\mysqlclient.libīrowse to the path of the MySQL Connector Project.Ĭlick Configure, Select Visual stuWin64, native compilers Tick BUILD_STATIC DWITH_SSL=C:\mysql-8.0.15\openssl-1.0.2q\rel64 ^Ĭopy m4.exe to C:\mysql-8.0.15\sql\ this avoids any m4.exe errors during builtĬopy binary_log_funcs.h and binary_log_types.h from mysql-8.0.15\libbinlogevents\export to mysql-8.0.15\include Step 2: Build MySQL (Yes the actual database)Ĭd C:\mysql-8.0.15\ cmake. Perl Configure debug-VC-WIN64A no-shared -openssldir=.\dbg64 Release perl Configure VC-WIN64A no-shared -openssldir=.\rel64 Run: 圆4 Native Tools Command prompt for VS 2017 Note: if you want to build OpenSSL 1.1.x steps will be a bit differentĮxtract to: C:\mysql-8.0.15\openssl-1.0.2q This is perl 5, version 24, subversion 3 (v5.24.3) Add CMAKE, Bison and pearl to your system pathĬheck to see if you got all setup correctly C:\>cmake -version
