Home  >  Article  >  Backend Development  >  What is the process of retrieving password in php

What is the process of retrieving password in php

coldplay.xixi
coldplay.xixiOriginal
2020-09-28 15:11:122252browse

php password retrieval process: First log in to the system as a system administrator and stop the MySQL service; then enter the installation directory; then skip the permission check and start, and enter the mysqlbin directory; finally stop MySQL Server and use normal Just start Mysql in mode.

What is the process of retrieving password in php

php password retrieval process:

1. Log in to the system as the system administrator.

2. Stop the MySQL service.

3. Enter the command window, and then enter the MySQL installation directory. For example, my installation directory is c:mysql, enter C:mysqlbin

4. Skip the permission check and start MySQL,

c:mysqlbin>mysqld-nt --skip-grant-tables

5. Re-open a window, enter the c:mysqlbin directory, and set a new password for root

c:mysqlbin>mysqladmin -u root flush-privileges password "newpassword"
c:mysqlbin>mysqladmin -u root -p shutdown

Replace newpassword with the root password you want to use. The second command will prompt you to enter For a new password, repeat the password entered in the first command.

6. Stop MySQL Server and start Mysql in normal mode.

7. You can use a new password to connect to Mysql.

If you want to know more about programming learning, please pay attention to the php training column!

The above is the detailed content of What is the process of retrieving password in php. 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