Recently I tried to successfully write a C++ application that would run with MySQL. While there are several different methods shown in tutorials, I found the leanest way available at that time which I could use.
If this interests you, here is the tutorial video I made that takes you step-by-step from installation to successful results on a C++ application:
System specs for this tutorial (Boost Libraries NOT REQUIRED):
- Windows 10 Professional
- 64 Bit machine
- Visual Studio Community 2017 (with Microsoft .NET Framework version 4.7.03056)
- MySQL Community Server 8.0.11
- MySQL Connector/C++ version 8.0.11
More details in the YouTube description.