当我检查错误报告时,它显示:
a:4:{i:0;s:105:"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket'/var/lib/mysql/mysql.sock' (2)";i:1;s:2381:"#0 /home/spicefur/public_html/beta/includes/
我有下面的php代码来连接到mysql。mysql_connect( "myserver.com" , "root", "redhat","datastore") or die(mysql_error()); Warning: mysql_connect(): Host '10.21.21.10' is not allowed to connect to this MySQL<