- Install mysqlconn-dev library, example for Debian:
apt-get install libmysqlcppconn-dev
- Download mysqlconn library
- Download the generic tar or install directly for your favorite flavor
- Download and install boost. This lib is needed by mysqlconn.
- If using generic, uncompress and take note of where is located.
- Create a cpp file to test. You can use this example
- Compile including the needed libraries. For example if you used used the generic lib, it should be something like this:
g++ -o test -Ipath/to/connlib/include/jdbc -I/path/to/boost test.cpp -lmysqlcppconn