Install the package libmysqlcppconn-dev from the repos, then add /usr/include/cppconn to the include directories and mysqlcppconn to the link libraries of your project.
can you please tell me which IDE you prefer to use for C++ in Ubuntu
Code::Blocks.
Since the version that comes with Ubuntu 10.04 is very old, it's a good idea to add an additional repository in order to update to the latest version: http://apt.jenslody.de/
Can I talk to you on facebook I'll be highly glad.