Stop the MySQL service first, and then start the background by skipping permissions:
/usr/bin/mysqld_safe--user=mysql--skip-grant-tables &
Then execute MySQL enter into MySQL and then change the password.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/88/F4/wKioL1gDFy-wcuvFAAFaCnmdrzw680.png-wh_500x0-wm_3 -wmp_4-s_983303422.png "title=" 1.png "alt=" Wkiol1gdfy-wcuvfaafacnmdrzw680.png-wh_50 "/>
To modify the MySQL password:
Use MySQL database, and then execute the following command
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/88/F7/wKiom1gDF1ySGErjAAB57KYWIGU297.png-wh_500x0-wm_3 -wmp_4-s_1099321556.png "title=" 2.png "alt=" Wkiom1gdf1ysgerjaab57kywigu297.png-wh_50 "/>
When you're done modifying, stop MySQL and start again in the normal way:
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/88/F4/wKioL1gDF3ySBOttAADRi86joAk288.png-wh_500x0-wm_3 -wmp_4-s_1170718335.png "title=" 3.png "alt=" Wkiol1gdf3ysbottaadri86joak288.png-wh_50 "/>
Login again with the new password to access the MySQL database.
MySQL forgot password how to hack