Steps to retrieve PHP database password_PHP tutorial

WBOY
Release: 2016-07-21 15:32:14
Original
820 people have browsed it

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. Reopen 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 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 the new password to connect to Mysql. :)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322855.htmlTechArticle1. 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 right...
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!