Installing MySQL Connector/C++
Solution 1:
Using a debian command worked for me, but I haven't tested the libs yet, so I'm not 100% sure if it truly worked. http://packages.debian.org/sid/libmysqlcppconn-dev
apt-get install libmysqlcppconn-dev
However, I did do this first https://askubuntu.com/a/259603/128334. You probably will need to as well.
Update (it works)
I tried this http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html with this flag https://stackoverflow.com/a/11879650/1382306, and it worked.