How to Use phpMyAdmin to modify the root user password of a MySQL database

Source: Internet
Author: User
Tags how to use phpmyadmin

Click the "SQL" tab on the top to enter the SQL command input interface. Enter the following command:
Copy codeThe Code is as follows: update mysql. user set password = PASSWORD ('jb51 $123456 ') where user = 'root ';
Click "execute" in the lower-right corner. If no error is reported, the modification is successful.

In addition, if you modify the root password, you need to modify the password in the phpMyAdmin configuration file. Otherwise, you cannot log on.
Find
Copy codeThe Code is as follows: $ cfg ['servers'] [$ I] ['Password'] = '';
Change
Copy codeThe Code is as follows: $ cfg ['servers'] [$ I] ['Password'] = 'jb51 $123456 ';

Click "execute" in the lower-right corner. The following page is displayed, indicating that the modification is successful. (Note: The number of columns affected by some mysql instances is not 2)

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.