Page 1 of 1

Installation of MySQL on Linux with PHP

Posted: Tue Oct 11, 2005 10:00 am
by Nunners
Hi Folks,

I've jsut setup a brand new development box, however I'm having serious problems getting MySQL working with PHP.

The server is running FC4, with MySQL v4.1.12 and PHP v5.05 and Apache v2.0.54. I've started the mysqld service, but I'm sitll getting the error:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/index.php on line 5
Could not connect: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
I can get mysql from the actual server, via ssh terminal.

Can anyone suggest anything?

Cheers
Nunners

Posted: Tue Oct 11, 2005 10:04 am
by pickle
I had this problem a while ago. I can't remember what the solution was, but I know I found it by Googling for it.

Posted: Thu Oct 13, 2005 9:09 am
by Nunners
Think I've worked out the problem. When I installed MySQL, using yum, I only installed the Client... not the server!