windows下mysql修改root密码
先停止mysql服务。
mysqld --skip-grant-tables
新打开一个cmd窗口,输入
mysql
use mysql
update mysql.user set authentication_string=password('8ik,*IK<') where user='root' and Host ='localhost';
flush privileges
先停止mysql服务。
mysqld --skip-grant-tables
新打开一个cmd窗口,输入
mysql
use mysql
update mysql.user set authentication_string=password('8ik,*IK<') where user='root' and Host ='localhost';
flush privileges