Apache public_html question

Ingemar Nilsson init at pdc.kth.se
Mon Mar 26 15:47:00 UTC 2007


Don Russell <fedora at drussell.dnsalias.com> writes:

> Now, I get as far as:
> if (false === ($dbh = mysql_connect('localhost',$uid,$pwd))) {
>     die("Can't connect to mySQL database: ".mysql_error());
> }
> 
> 
> and sure enough, results in:
> Can't connect to mySQL database: Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (2)

Is your MySQL server running? As root, run

service mysqld status

Regards
Ingemar




More information about the fedora-list mailing list