sudo systemctl stop mysqld


mysqld_safe --skip-grant-tables &


mysql

mysql> use mysql

mysql> update user set password=PASSWORD('passwd') where User='root';

mysql> flush privileges;

+ Recent posts