XAMPP cannot log on to phpmyadmin by modifying the mysql root Password

Source: Internet
Author: User

Phpmyadmin is a WEB-based mysql database management tool that can perform various operations on the mysql database. However, you must configure the username and logon password in phpmyadmin, if the mysql password is changed, the password in phpmyadmin also needs to be changed.

Xampp/phpMyAdmin/config. inc. the password set in php (empty) conflicts, so that users cannot log on (you can log on to phpmyadmin before the computer restarts, but once the machine restarts, you cannot log on ).

The solution is also simple:

1. Modify the phpmyadmin configuration file in xampp.

Go to the installation directory of xampp, modify the xampp/phpMyAdmin/config. inc. php file, find and set the password to start modification,

For example, $ cfg ['servers'] [$ I] ['Password'] = '000000 ';

2. Clear the browser cache and log on to http: // 127.0.0.1/phpmyadmin/again.

In addition, after clicking "permission", we can see the users of the entire database as follows. You can click "operation" to change the user password again and modify config. inc. php accordingly.

Summary

W

In fact, this is for xampp/phpMyAdmin/config. inc. in php, $ cfg ['servers'] [$ I] ['Password'] = '000000, if you change the user name, you can use $ cfg ['servers'] [$ I] ['user'] = 'your Username.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.