Home  >  Article  >  Database  >  How to check the default password of mysql

How to check the default password of mysql

little bottle
little bottleOriginal
2019-05-09 17:29:1585550browse

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 .

How to check the default password of mysql

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

How to check the default password of mysql

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn