A reckless behavior: Unable to manipulate the database after modifying the MySQL root password in phpMyAdmin

Source: Internet
Author: User
Tags phpmyadmin

First, the Hand of cheap behavior (????)

In a development of the PHP environment through the XAMPP mode, need to operate the database through phpMyAdmin access to MySQL, in a database operation when the memory is not set password, so directly in the user table in the MySQL database set the root user's password to " 123456 ", turn off the page, restart MySQL, access MySQL again via phpMyAdmin, and guess what happened

After entering MySQL, MySQL database disappears, I do not have the table permission, execute the use MySQL command error (Access denied for user "@ ' localhost ' to database ' MySQL '), as shown in

Second, try

Encounter problems of course is to solve the problem, can not use the database bar, so in the online toss, some solutions on the internet did not solve my problem, then how to do???

All kinds of ways have been tried, the problem is still there, no increase!

Give??? Unwilling to heart!!!

I do not know is not phpmyadmin problem, so I will all the changes to restore, swap with Mysql-front "root username, empty password" form login, the problem remains, disappointment!

Third, hope

Then I suddenly think that since the "root user name, empty password" way is access to MySQL, then I can not through the XAMPP Command window to enter, try a bit, success!

Then use the SQL statement to modify the password, success!

At this point, the problem solved, again using phpMyAdmin access to MySQL, how can not get into???

Naught???

A flash of light, it may be necessary to modify the C:\xampp\phpMyAdmin\config.inc.php file, so as follows to add the new settings password, re-visit, Success!

Now look at the user table in the MySQL database, as shown below:

Summary:

When you are unfamiliar with these tools, do not have a cheap hand (????)

If necessary, you can take a brief look at the information

A reckless behavior: Unable to manipulate the database after modifying the MySQL root password in phpMyAdmin

Related Article

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.