Home >Backend Development >PHP Problem >What is the process of retrieving password in php
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.
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!