您的位置:首页 > 数据库 > MariaDB

mariadb 安装后设置密码失败 出现is not allowed to connect to this mariadb server

2016-11-16 11:02 555 查看
CentOS7.0以及RHEL7.0使用此命令

systemctl stop mariadb

  /usr/bin/mysqld_safe --skip-grant-tables

另外开个SSH连接或是另开一个shell 

[root@localhost ~]# mysql 

mysql>use mysql mysql>update user set  password=password("123456") where user="root"; 

mysql>flush privileges; 

mysql>exit 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐