Change password for MySQL

Source: Internet
Author: User

Check to see if the MySQL service can be turned on to ensure that the MySQL service is up and running.

Step one: unzip your mysql to the C packing directory

The second step: (after extracting into the directory, find the Install.bat file, open with Ediplus, find--install MySQL and net start MySQL, two MySQL must be the same) into the cmd command, You do not have to configure the environment variable to manually switch to the Mysql\bin directory under the CD command to enter

Step three: use the command to log in to MySQL (mysql-localhost-u root) and enter the original password.

Fourth step: mysql>use MySQL; #选择mysql数据库.

Fifth step;mysql>set password for connection name =password (' New password '); (OK ... Mysql\q end)

myqsl> prompt successful Mysql>flush privileges; mysql> prompt Successful Mysql>quit (launched)

Sixth step: new login mysql mysql>mysql-h localhost-u root-p

Enter password; Type a new password

Seventh step;mysql>show databases;

Carry Q

End

Change password for MySQL

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.