I have just installed the Mysql 5.17 and when I am testing the php and mysql with this code:
<?php
$link=mysql_connect("localhost", "root", "") or DIE ("Cannot connect");
echo ("Connected successfully");
?>
I am getting this error
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) in /home/www/dbtest.php on line 2