我有下面的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 -u username -p的命令行访问也失败。最后,phpmyadmin失败。ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'(2)
ser
我已经在UbuntuServer16.04虚拟机上安装了MySQL数据库服务器。我创建了一个名为Test的新数据库:我还创建了新的远程用户“test”,并授予他在该数据库上的权限:
CREATE USER 'IDE连接到DataGrip数据库,但失败了很多次。我的虚拟机在本地网络上是可见的。我可以在nmap上看到它的ip和MySQL<