MyMySQL

A lightweight C++ wrapper around the MySQL client API

I suggest you look at mysqlcppapi, it might be better for your needs.

You could also look at MySQL AB's Connector/C++ (formerly known as MySQL++) except that they appear to have stopped shipping it· This isn't a bad thing, as it wasn't very good. (Update: mysql++ has a new maintainer and is worth checking out again. Sept 2005)

If you're still here, you can download the mymysql/connection.h, mymysql/query.h and mymysql/util.h headers, or read the documentation.

(New version of mymysql/util.h)