LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   PHP Problems with Mysql (https://www.linuxquestions.org/questions/linux-networking-3/php-problems-with-mysql-258351/)

MattJohnson 11-23-2004 09:10 AM

PHP Problems with Mysql
 
Hi
I just installed PHP and Mysql with apache as usual, I have a problem
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
origiinally my mysql.sock was in /tmp so i created a symbolic link to /var/lib/mysql and still the same error. I've tried everything and the sock file is definately there, but php can't get a connection from it. I try running the mysql client program using the --socket option and that works through either socket so the socket definatley points to the connection.

Does anyone know why this wouldn't work through php when it works through the command line client. PHP is recognising the mysql commands, but just not connecting.

I tried changing the permissions on the file and directory, still no luck. Anyone got any suggestions would be really appreciates

thanks
Matt Johnson

halo14 11-23-2004 09:19 AM

DO NOT DOUBLE POST


All times are GMT -5. The time now is 03:25 AM.