mysql5.7 忘记密码 如何跳过密码 修改密码 需要roo 权限
第一步
service mysqld start --skip-grant-tables
启动mysql 开启跳过密码
第二步
update mysql.user set authentication_string=password('123456') where user='root';
修改密码
第三步
重启mysql
登录成功

第一步
service mysqld start --skip-grant-tables
启动mysql 开启跳过密码
第二步
update mysql.user set authentication_string=password('123456') where user='root';
修改密码
第三步
重启mysql
登录成功
