Home > Database > PHPMyAdmin > body text

How to reset password in phpmyadmin?

青灯夜游
Release: 2020-05-01 18:24:11
Original
4062 people have browsed it

I forgot my phpMyAdmin login password, how do I reset it? The following article will introduce it to you. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to reset password in phpmyadmin?

phpMyAdmin is a MySQL database management tool based on PHP and structured in Web-Base mode on the website host. It is a free Web application; for using MySQL The database management system provides a convenient GUI, allowing administrators to use the Web interface to manage MySQL databases.

phpMyAdmin has all the common features you may need while developing a MySQL based application or website. It is the most popular MySQL management tool used by millions of users around the world and has won numerous awards and honors.

phpMyAdminHow to reset password?

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 recommendations:phpmyadmintutorial

The above is the detailed content of How to reset password in phpmyadmin?. 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 [email protected]
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!