Accidentally deleted the mysql database performance_schema

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.
This link: https://blog.csdn.net/xiong451823652/article/details/91906261

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:

Guess you like

Origin blog.csdn.net/xiong451823652/article/details/91906261