How to check the default password of mysql: First execute the [systemctl start mysqld] command to start mysql; then execute the [grep 'temporary password' /var/log/mysqld.log] command to check the default password .
Start mysql
(Video tutorial recommendation: mysql video tutorial)
systemctl start mysqld
View mysql Status
systemctl status mysqld
After starting mysql, the initial password will be written to the log
You can view it through the grep 'temporary password' /var/log/mysqld.log command
The above is the detailed content of How to check the default password of mysql. For more information, please follow other related articles on the PHP Chinese website!