Home > Database > Mysql Tutorial > How to check the default password of mysql

How to check the default password of mysql

little bottle
Release: 2022-01-12 15:40:45
Original
85828 people have browsed it

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
Copy after login

View mysql Status

systemctl status mysqld
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template