Home > Database > phpMyAdmin > body text

What should I do if I forget my phpmyadmin login password?

王林
Release: 2020-01-15 10:25:40
Original
5189 people have browsed it

What should I do if I forget my phpmyadmin login password?

1. First enter DOS and open a cmd

c:\>sc stop mysql
Copy after login

2. Enter the directory

cd C:\xampp\mysql\bin
Copy after login
Copy after login

Explanation C:\xampp\ The mysql\bin path should be changed to your own path, the same below.

C:\xampp\mysql\bin>
mysqld --defaults-file="C:\xampp\mysql\bin\my.ini" --console --skip-grant-tables
Copy after login

3. Then reopen a cmd and enter the directory

cd C:\xampp\mysql\bin
Copy after login
Copy after login

4. Finally enter the following commands in sequence:

C:\xampp\mysql\bin>mysql -uroot mysql
mysql>UPDATE user SET Password=PASSWORD('123456') where USER='root';
mysql>FLUSH PRIVILEGES;
mysql>quit
C:\xampp\mysql\bin>mysqladmin shutdown
Copy after login

5. Then restart MySQL normally Just service. Username root, password 123456.

Recommended related articles and tutorials: phpmyadmin tutorial

The above is the detailed content of What should I do if I forget my phpmyadmin login password?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!