this is weird. mysql works, i can connect from a command line.
but this code produces the output below:
<?
$link = mysql_connect("localhost", "root", "rootpassword");
print ($link);
?>
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/local/apache/htdocs/md5.php on line 3
does anybody know what I can check to resolve this?
thanks