标签:rest systemctl 模式 密码登录 grant word upd emctl tables
停掉MariaDB服务:
systemctl stop mariadb
sudo mysqld_safe --skip-grant-tables --skip-networking &
mysql -u root
mysql> use mysql; mysql> update user set password=PASSWORD("
passw@rd
") where User=‘root‘;
mysql> flush privileges;
systemctl restart mariadb
mysql -u root -ppassw@rd
标签:rest systemctl 模式 密码登录 grant word upd emctl tables
原文地址:http://www.cnblogs.com/liujiaq/p/7647201.html