FLUSH PRIVILEGES;" and set the password; then restart mysql and log in through the command "#sudo mysql -uroot -p Enter..."."/> FLUSH PRIVILEGES;" and set the password; then restart mysql and log in through the command "#sudo mysql -uroot -p Enter...".">

Home  >  Article  >  Database  >  What should I do if the password for my phpmyadmin account is incorrect?

What should I do if the password for my phpmyadmin account is incorrect?

藏色散人
藏色散人Original
2020-04-06 10:07:472704browse

What should I do if the password for my phpmyadmin account is incorrect?

What should I do if the password for my phpmyadmin account is incorrect?

LoginphpMyAdminIncorrect password occurs

What should I do if the password for my phpmyadmin account is incorrect?

##1. Close mysql first and set the password

#sudo  /etc/init.d/mysql stop 
#sudo  mysqld_safe --user=mysql --skip-grant-tables --skip-networking & 
#sudo  mysql -u root mysql 
mysql> UPDATE user SET Password=PASSWORD('pas') where USER='root'; 
mysql> FLUSH PRIVILEGES; 
mysql> quit

2. Restart mysql and try to log in

#sudo  /etc/init.d/mysql restart 
#sudo  mysql -uroot -p 
Enter password:  
#输入密码,出现下面这个就表示登录正常了 
mysql>

The above is the detailed content of What should I do if the password for my phpmyadmin account is incorrect?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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