H
HP
Hi All
this is my code:
$db = DBI->connect($dbpath, $dbuser , $dbpass) || die "cannot connect
to database".$DBI::errstr;
i am trying to connect to mysql database.when i am running as perl
-cgi script on command line its working fine.
but when i am running it through browser its giving me this error .
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock'
do anyone know the reason?
this is my code:
$db = DBI->connect($dbpath, $dbuser , $dbpass) || die "cannot connect
to database".$DBI::errstr;
i am trying to connect to mysql database.when i am running as perl
-cgi script on command line its working fine.
but when i am running it through browser its giving me this error .
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock'
do anyone know the reason?