Home > Database > phpMyAdmin > How to reset phpmyadmin password if you forget it

How to reset phpmyadmin password if you forget it

王林
Release: 2020-02-06 18:11:08
Original
3367 people have browsed it

How to reset phpmyadmin password if you forget it

1. Stop the mysql service:

/etc/init.d/mysql stop
Copy after login

2. Skip verification and start MySQL

/usr/local/mysql/bin/mysqld_safe –-skip-grant-tables >/dev/null 2>&1 &
Copy after login

3. Prepare to reset a new password

/usr/local/mysql/bin/mysql -u root mysql
Copy after login

4. Reset new password

update user set authentication_string = Password('新密码') where User = 'root';
Copy after login

5. Update permissions

flush privileges;
Copy after login

6. Exit

exit;
Copy after login

7. Restart MYSQL

killall mysqld
/etc/init.d/mysql start
Copy after login

Related Recommended article tutorials: phpmyadmin tutorial

The above is the detailed content of How to reset phpmyadmin password if you forget it. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template