解决centos7.4 安装LAMP环境后报错:1130- Host xxx is not allowed to……
时间:
2018-07-01 15:09:54
阅读:
239
评论:
收藏:
0
[点我收藏+]
配置好环境后,用navicat登录账号时报1130- Host xxx is not allowed to……或 access denied for user root@……错,原因是远程登录权限需要再设置一下,流程如下:
1.登录shell工具,先登录mysql(最新的mysql分支为mariaDB)mysql -uroot -p 回车 输入密码 回车确定登录。
2.在mysql中运行命令
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘localhost‘ IDENTIFIED BY ‘密码‘ WITH GRANT OPTION;
flush privileges;
3.exit后重启, 现在查看能否登录,这类错误基本是权限问题
解决centos7.4 安装LAMP环境后报错:1130- Host xxx is not allowed to……
原文:https://www.cnblogs.com/easyTrue/p/9250181.html