Phpadmin forgot to login password after operation

Source: Internet
Author: User

1. Locate the My.ini configuration file in the MySQL installation directory, open it, and add the Skip-grant-tables in the location as shown, save

2. Open cmd in MySQL installation directory, enter command mysql-uroot-p without entering password, enter

If an error occurs, if the computer finds the service, shuts down and re-opens MySQL, you can enter the above command again to enter MySQL normally

3. Continue to enter the following command to change the password

Use MySQL;

Update user set Password=password (' 12345 ') where user= ' root ';

If the following error occurs, a version issue

Change the command, enter update mysql. User set Authentication_string=password (' root ') where user= ' root ';

4. Delete or comment out the Skip-grant-tables statement under the My.ini file and reenter the changed password to enter phpadmin normally.

Phpadmin forgot to login password after operation

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.