Access database data from C++ code

I would like to know how we can access data from a database server such as MySQL server or Microsoft SQL server.
I didn’t found any samples or tutorials.
I’m using UE4.

Thank you for your help.
D.

Has been a while, but there are several tutorials on the subject. e.g., http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html, also c++ wrappers, like mysql++ http://tangentsoft.net/mysql++/.

Thank you very much for your quick answer.

Have a nice day,
D.