https://blog.csdn.net/m0_37482190/article/details/86635339
- 注意:修改密码的第三种方法中的 update user set password=password(“123”) where user=“root”;(mysql 5.7之前的版本)要改为 update mysql.user set authentication_string=password("root123") where User='root';(mysql5.7版本)
- 注意:忘记密码的方法,查看链接https://blog.csdn.net/weixin_43277507/article/details/88114955。该链接中的my.ini文件为mysql的数据目录下的my.ini文件。