Modify the password for the MySQL user

Source: Internet
Author: User

===== The current user password is known =====

P.S.: This article is only for user password changes under Windows.

1. Use the Bin folder to enter MySQL:

CD Path\to\bin\mysqladmin.exe

2. Enter the following command:

Mysqladmin-u root-p Password

3. Prompt to enter the password for the current user (root, which can be another user):

Enter your password:yourpassword

4. Enter the new password and confirm the password you entered.

===== do not know the current user password when =====

1.CD Path\to\mysql.exe

2. Log in to the root user role and execute the following command:

SET PASSWORD for [email protected] "%" = PASSWORD (Demopassword);

P.S.: In addition, when the user forgets the root password, but can use data management tools such as phpMyAdmin to access, you can directly adhere to its relevant directory configuration file.

Modify the password for the MySQL user

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.