systemctl stop mysql
mysqld --user=mysql --skip-grant-tables &
mysql
insert into mysql.user(Host,User,Password) values("localhost","test",password("1234"));
flush privileges;
systemctl stop mysql
mysqld --user=mysql --skip-grant-tables &
mysql
insert into mysql.user(Host,User,Password) values("localhost","test",password("1234"));
flush privileges;
本文标题:忘记密码,直接插表用户
本文链接:https://www.haomeiwen.com/subject/gotgdxtx.html
网友评论