sudo su
root@iqbal: mysql -u root -p
Enter password:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<your password>';
如果出现错误(1819),执行如下命令:
mysql> uninstall plugin validate_password;
Then restart mysql: systemctl restart mysql