I'm having problems with the Mysql.pm module. When I have the two statements
$dbh = Mysql->connect($host,$database,$username,$password); my $sth = $dbh->query("insert into users values(NULL, 'Jon', 'Sterling', 'Doe', 24, '[EMAIL PROTECTED]')"); My problem is when I run it as root it works fine, but when I run it as a regular user I get Mysql connect('database=userdb;host=localhost','joe_stuart',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) at ./SendQuery.pl line 43 Can't call method "query" on an undefined value at ./SendQuery.pl line 81. Any help would be appreciated Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>