Solve the Problem of forgetting the root password in ubuntu 11.10 mysql

Source: Internet
Author: User

Ubuntu 11.10 mysql forget the root password solution 1. Run # killall mysqld 2 under the root account, and then run the following command www.2cto.com # mysqld -- skip-grant-tables // stop in the command line 3. Open a new command line, then run the command to change the root password # update user set PASSWORD = password ("new PASSWORD") where user = "root"; # flush privileges; # exit 4. log on to mysql with the new password in the command line. The ERROR message is: www.2cto.com ERROR 2002 (HY000 ): can't connect to local MySQL server through socket '/var/run/mysqld. sock '(2) indicates that mysql services are not up and run the following command: #/etc/init. d/mysql start // indicates starting mysql #/etc/init. d/mysql stop // mysql stop
 

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.