Local non-root access universal change the MYSQL password method-vulnerability warning-the black bar safety net

ID MYHACK58:62200925597
Type myhack58
Reporter 佚名
Modified 2009-12-13T00:00:00


Open CMD first, stop the mysql service

net stop mysql

Enter the mysql installation directory under the bin folder, and then enter

mysqld-nt --skip-grant-tables

Skip password detection

And then in addition a new open a cmd window

Input mysql and return can to root access into mysql

use mysql

update user set password=password("newPassword") where user="root";

flush privileges;

If there is no error message, the password can be changed successfully.