3 messages in com.mysql.lists.plusplusRe: Question on connecting to mysql w...
FromSent OnAttachments
Antonios Deligiannakis06 Mar 2002 14:32 
Derek Meek06 Mar 2002 14:48 
Antonios Deligiannakis06 Mar 2002 14:57 
Subject:Re: Question on connecting to mysql with mysql++
From:Derek Meek (whit@cedar-rapids.net)
Date:03/06/2002 02:48:21 PM
List:com.mysql.lists.plusplus

use call connect("databasename", "localhost", "someuser", "somepass");

Antonios Deligiannakis wrote:

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.