MySQL Modify user password

Source: Internet
Author: User
Tags mysql gui mysql gui tools

Directory
    1. Mysqladmin command
    2. UPDATE User Statement
    3. SET PASSWORD Statement
    4. Root password loss (to be verified)
    The
    1. mysqladmin command (headings) is formatted as follows (where user is the username, password is the new password): mysqladmin-u user-p password Password The command will prompt for the original password, enter the correct can be modified.
      For example, to set the root user's password to 123456, mysqladmin-u root-p password 123456
    2. The
    3. Update user statement (headings) must first log in to MySQL with the root account and then execute: Update user SET Password=password (' 123456 ') WHERE user= ' root ';
      FLUSH privileges;
    4. The
    5. set PASSWORD statement (headings) is also required to log in to MySQL with the root command first and then execute: Set PASSWORD for Root=password (' 123456 ');
    6. The root password is missing (headings) using MySQL's own tool "MySQL GUI tools", I have been using the 5.0 version. Run a program MySQLSystemTrayMonitor.exe in the installation directory and the icon will appear in the system tray when you are finished running. If the MySQL service is not already installed, it will not appear, but first configure and install the service via Action>manage MySQL Instances. If the service is already installed, the right mouse button will appear after the "Configure Instance" menu. After clicking, the following MySQL administrator window appears:

      If the original service configuration is normal, select "Startup variable" in the list on the left, and select "Security" in the appropriate right-hand tab, tick "Disable Grant table" and then "Apply Changes".


      and go back to "server control" on the left, and the corresponding "Start/Stop Services" tab on the right, click Start Service. At this point, the connection to MySQL has no user name and password, you can change the root password.
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.