I am trying to use the examples of mysql++ (the latest version 1.7.9) on a
PC running redhat linux 7.0, with gcc 3.0. I successfully compiled the
files, but when trying to run the examples, I cannot connect to mysql. The
mysql server is running (I can connect by typping "mysql -u login -p"),
but I always get an error message when trying to connect through mysql++.
The error message that I am getting is:
Error: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)
I have tried to connect both as a regular user, and as a root user.
I would appreciate any help on this.