Modify the root password of MySQL

Source: Internet
Author: User
Tags phpmyadmin

Many methods

1. In DOS, go to the Bin folder in the MySQL installation directory

Mysqladmin-u root-p Password 123456

2. First log in to MySQL with the root account and then execute:

UPDATE user SET Password=password (' 123456 ') WHERE user= ' root ';

Flush privileges;//Refresh the data table and restart the MySQL server if you don't want to call.

Ps:

Try not to change the root password, you can create a user, give permission to modify that, once I was to modify the school database server root password results but caused the root of the loss of permissions, find are not back, the results of the database can not be backed up, fortunately there are other solutions.

Wamp environment under the root password modified phpMyAdmin, you need to modify the phpMyAdmin installation directory in the config.inc.php file password, as follows:

Modify the root password of MySQL

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.