mysql 密码忘记解决办法

bin>net stop mysql

bin>mysqld --skip-grant-tables

bin>mysql

mysql>use mysql

mysql>update user set password=password("123456") where user="root";

mysql>flush privileges;

mysql>quit

bin>mysqladmin -u root -p shutdown

bin>net start mysql

猜你喜欢

转载自www.cnblogs.com/csnd/p/12401211.html