Command Line to modify MYSQL password

Source: Internet
Author: User
Tags mysql command line

Command Line to modify the MYSQL password 1. Add the root password to the dos directory. Enter [plain] mysqladmin-uroot-password 1234 to add the root password 12342. Modify the root password format: [plain] mysqladmin-u username-p old password New password Change root password 4321 [plain] mysqladmin-uroot-p1234 password 4321 3. Change password in Mysql command line [plain] mysql> UPDATE mysql. user SET password = PASSWORD ('000000') WHERE User = 'root'; mysql> flush privileges; 4. display the current user [plain] mysql> select user ();

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.