I have got PHP script and MySQL database. I have following code inside:
mysql_connect("myserver.com", "mylogin", "mypass");
mysql_select_db("ggg");
$a = mysql_query("...");
echo mysql_error();
But it shows me:
Access denied for 'root'@'localhost' (USING PASSWORD : NO)
Why? In php.ini I haven't got specified any default settings. Help me please