Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
1. Find the MySQL installation directory => find / -name mysql
2. into the installation directory => cd / var / lib / mysql
3. Run => mysql_upgrade -u root -p --force,
4. When Enter password: and enter the password
result: