centos6 mysql Access denied for user 'root'@'211.139.247.54' (using password: YES)

来源:互联网 发布:美工数字字体图片 编辑:程序博客网 时间:2024/05/21 16:40

该错误表示:mysql 默认关闭远程登录权限

管理员需要对可以远程登录的用户进行授权(指定IP)
命令行进入mysql
mysql -u root -p
mysql> GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘123456’ WITH GRANT OPTION;
mysql > FLUSH privileges;

“123456”表示root用户的登录密码

0 0