is not allowed to connect to this MySQL server解决方法
程序员文章站
2024-01-26 18:54:34
...
is not allowed to connect to this MySQL server解决办法 问题解决方法: 首先使用update把mysql.user中的root的host从localhost修改成%: mysqlUPDATE?mysql.user?SET?Host='%'?WHERE?Host='localhost'?; mysql?GRANT?ALL?PRIVILEGES?ON?*.*?TO?root@"%"; m
is not allowed to connect to this MySQL server解决办法问题解决方法:
首先使用update把mysql.user中的root的host从localhost修改成%:
mysql>UPDATE?mysql.user?SET?Host='%'?WHERE?Host='localhost'?;
mysql>?GRANT?ALL?PRIVILEGES?ON?*.*?TO?root@"%";
mysql>;FLUSH?PRIVILEGES?;?
下一篇: php通过smtp验证登陆
推荐阅读
-
is not allowed to connect to this MySQL server解决方法
-
异常代码:2003 can't connect to MySQL server on '*'(10061)
-
Mysql:is not allowed to connect to this MySQL server_MySQL
-
MMC不能打开文件SQL Server企业管理器问题解决方法_MySQL
-
CodeIgniter错误mysql_connect(): No such file or directory解决方法_PHP
-
Can't connect to local MySQL server 时 修改 root 用户名
-
Can t connect to MySQL server on localhost (10061)
-
阿里云ECS Linux服务器外网无法连接MySQL解决方法(报错2003- Can't connect MySQL Server on 'x.x.x.x'(10038))
-
CodeIgniter错误mysql_connect(): No such file or directory解决方法,nosuchfile_PHP教程
-
CodeIgniter错误mysql_connect(): No such file or directory解决方法,nosuchfile