Re: not able to connect to mysql
- From: Brian Wakem <no@xxxxxxxxx>
- Date: Fri, 06 Jan 2006 12:03:08 +0000
HP wrote:
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?
Probably a permissions issue. You missed the all important number off the end of that error message.
-- Brian Wakem Email: http://homepage.ntlworld.com/b.wakem/myemail.png .
- Follow-Ups:
- Re: not able to connect to mysql
- From: HP
- Re: not able to connect to mysql
- From: HP
- Re: not able to connect to mysql
- References:
- not able to connect to mysql
- From: HP
- not able to connect to mysql
- Prev by Date: not able to connect to mysql
- Next by Date: Re: calling subroutine , name derived from variable
- Previous by thread: not able to connect to mysql
- Next by thread: Re: not able to connect to mysql
- Index(es):
Relevant Pages
|