How to change the password of MySQLroot in phpMyAdmin

Source: Internet
Author: User
Phpmyadmin: to change the password of a mysql User, note that if you change the password of the user you log on to, you must modify it in The phpmyadmin configuration file after modification, let's take a look. click... phpmyadmin: to change the password of a mysql User, note that if you change the password of the user you log on to, you must modify it in The phpmyadmin configuration file after modification, let's take a look.

Click the "SQL" tab on the top to enter the SQL command input interface. enter the following command:

Update mysql. user set password = PASSWORD ('snsgou $123456 ') where user = 'root ';

Note: If you have changed the root password, you also need to change the password in the phpMyAdmin configuration file. Otherwise, you cannot log on.

Find: $ cfg ['servers'] [$ I] ['password'] = ''; // phprm.com

Change to: $ cfg ['servers'] [$ I] ['password'] = 'snsgou $123456 ';

The new password takes effect after the MySQL service is restarted.


Tutorial URL:

You are welcome to add your _ favorites to the Favorites folder, but please keep the link for this 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.