现在我的代码是在线的,但是我的数据库在localhost上(使用wamp)。我以前试过,它工作得很好。当我尝试执行代码时(它应该向数据库发送一个反馈),我得到了这个错误:这是我连接到我的数据库的方式:$bdd = new PDO('mysql:host=localhost;dbname=lexcelera', 'root',
我有下面的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<