我有下面的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连接器连接到MySQL数据库。这项服务的消费者是一个Windows应用程序。在我的电脑上一切都很好。但是,如果我发布WCF服务(在web或本地主机上),并尝试从电话应用程序中使用它,它会生成一个错误
“由于内部错误,服务器无法处理请求。”通过测试,我发现这个错误出现在我的笔记本电脑上的connection = new MySqlConnection(ConnectionString);行(当我调试项目时),我测试了我的WCF,它完美地