Linux User Password lost recovery method

Source: Internet
Author: User

Linux User Password lost recover method:

my own The CentOS 6.4 is installed on the VirtualBox virtual machine and is resolved as follows:

    1. when booting up, press the " E"key or"ESC"Key will enter the following interface.

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/99/FD/wKioL1lP2sbiQ_ddAAEJDKQHlOQ725.png-wh_500x0-wm_ 3-wmp_4-s_3394667631.png "title=" 1.png "alt=" Wkiol1lp2sbiq_ddaaejdkqhloq725.png-wh_50 "/>

    1. Select the appropriate kernel and press the E", appear, select the second item, press the"e"key again

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/99/FC/wKiom1lP2yCAqI7EAAHQIGpufTI860.png-wh_500x0-wm_ 3-wmp_4-s_817891314.png "title=" 2.png "alt=" Wkiom1lp2ycaqi7eaahqigpufti860.png-wh_50 "/>

3. after the second step, this screen can be edited, at the end of the message with "space", directly enter the number of "1" () or type "single" is also OK, enter the next step.

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/99/FD/wKioL1lP2zWBvvonAAFK74YlqcM959.png-wh_500x0-wm_ 3-wmp_4-s_3059883495.png "title=" 3.png "alt=" Wkiol1lp2zwbvvonaafk74ylqcm959.png-wh_50 "/>

4. after the third step of operation, will appear, is it feeling back to the second step? No, here's the "B" key to the keyboard to enter the boot system. Notice, here's the "B" key .

650) this.width=650; "Width=" 554 "height=" 309 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>

Retrieve the Lost mysql root user password:

Http://www.jb51.net/article/77858.htm

Close the running MySQL :

[[Email protected] ~]# service MySQL stop

Run

[Email protected] ~]# Mysqld_safe--skip-grant-tables &

For security, you can disable remote connections like this:

[Email protected] ~]# mysqld_safe--skip-grant-tables--skip-networking &


This article from "IT520" blog, reproduced please contact the author!

Linux User Password lost recovery method

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.