Re: Mysql socket connect problems

From: Date: Wed, 21 Mar 2001 05:11:15 +0000
Subject: Re: Mysql socket connect problems
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-2533@lists.php.net to get a copy of this message
make sure that the permission for the mysql.sock file and the mysql directory that it is located in are both set to 755. if the mysql.sock file is located in a different directory that what the error msg gives you, then create a simlink to the file. On Tue, 20 Mar 2001, Paul Newby wrote: > > I also have the problem described by Jason, or a somewhat similar > one. The MySQL command line monitor works fine, but when > php mysql functions are called from a script I get > > Can't connect to local MySQL server > through socket '/var/lib/mysql/mysql.sock' > > which is kind of odd because in the process of getting > PHP4 installed, I removed and reinstalled MySQL, and changed > the layout in the process: the mysql directory > was moved from /var/lib to /usr/local/mysql/var > and PHP4 was configured with '--with-mysql=/usr/local/mysql' > ... so I don't know why php appears to be referring > to /var/lib/mysql at all. > > Any ideas? > > Thanks, > Paul N. > > > > Hi > > > > I would be really grateful if someone can help me out. > > I have installed Apache 1.3.17 with php4pl1 and Mysql 3.23.33. I can connect > > to Mysql through the console but when I try to connect to it on my web > > broswer then I get this error message: > > > > Warning: MySQL Connection Failed: Can't connect to local MySQL server > > through socket '/var/lib/mysql/mysql.sock' (111) in > > /home/JasonC/Dev/registration.php on line 19 > > > > I am using the mysql.sock file in the /tmp/ directory but I have also placed > > the mysql,sock file in the '/var/lib/mysql/ directory but to no avail! > > > > Please help > > > > Thankyou > > > > Jason > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.install (#2533) next »