我有下面的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不够好,无法理解它想从我这里得到什么。我有一个简短的java测试用例,它在我的dev系统上打开mysql上的连接,但是当我试图将它放到服务器上时,它失败了。谢谢!Connection gotten: com.mysql.jdbc.Connection@c980c9.服务器输出(我试图跟踪的错误)(删除了一些空行)。:256)
at com.mysql.jdbc.Mysq
现在我的代码是在线的,但是我的数据库在localhost上(使用wamp)。我以前试过,它工作得很好。当我尝试执行代码时(它应该向数据库发送一个反馈),我得到了这个错误:这是我连接到我的数据库的方式:$bdd = new PDO('mysql:host=localhost;dbname=lexcelera', 'root',