Reset MySQL root user password under Linux

Source: Internet
Author: User


If you forget the mysqlroot password, you can reset it in the following ways: 1. Stop the MySQL process in the system; Killall-term mysqld2. Start MySQL with the following command, start it without checking permissions, and go to the bin of MySQL. Mysqld_safe--skip-grant-tables &3. Then use a blank password to log in to MySQL with the root user, Mysql-uroot4. Modify the root user's password; mysql>update mysql.use     R Set Password=password (' New password ') where user= ' root ';     Mysql>flush privileges; Mysql>quit Restart MySQL, you can log in with the new password.




This article is from the "Qizhong" blog, make sure to keep this source http://qizhong.blog.51cto.com/12933988/1981604

Reset MySQL root user password under Linux

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.