Debian9 安装MariaDb10.1 空密码无法登陆

论坛 期权论坛 脚本     
匿名技术用户   2021-1-3 21:49   36   0

1.使用debian系统root账号登录,以下命令首次进入mariadb

mysql -u root

2.将mariadb root plugin更新为

update user set plugin='mysql_native_password' where user='root'

3.flush privileges 并重启mariadb 服务

systemctl restart mysql

4.修改mariadb root密码

update user set authentication_string=PASSWORD("你的密码") where user="root";

转载于:https://my.oschina.net/mosg/blog/1931434

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP