bashvim /etc/my.cnf.d/server.cnf [mysqld] skip-grant-tables
bashsystemctl start mariadb
SQLuse mysql;
update user set password=password('123') where user='root' and host='localhost';
flush privileges;
删除配置文件中前面增加的 skip-grant-tables
重启 mariadb
bashsystemctl restart mariadb
SQLmysql -uroot -p123
本文作者:@Rrx
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!