Forgot root password retrieval method

mysql tutorial forgot root password recovery method
php tutorial myadmin, then you can enter mysql, you can enter with the username and password of phpmyadmin,
if phpmyadmin can enter, then check it in config.php or config.default.php Remember to

remember the root password of mysql, you can reset it by the following methods:
1. Kill the mysql process in the system;
2. In the command prompt (cmd), enter the bin directory of mysql, and use the following command to start mysql to Start without checking permissions; 
mysqld-nt --skip-grant-tables
3. Then reopen a command prompt window (cmd) to log in to mysql using the root user with an empty password;
mysql -u root
4. Modify the root user
mysql> update mysql.user set password=password('new password') where user='root';  mysql 
> flush privileges; 
mysql> quit
5. Restart the computer and you can log in with the new password.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327011564&siteId=291194637