之前开发项目一直用的是mysql 8.0.11数据库 但越到后期 越发觉数据库版本太新 容易出很多不知道 啥啥的错误 浪费时间
于是决定重装低版本的 5.7.22 简直丧心病狂啊 。来来回回 操作了至少 20次 愣是没成功。。。
卸载步骤:https://www.2cto.com/database/201707/660694.html
重装步骤:https://blog.csdn.net/bfqs1988/article/details/80102981
一开始安装在D盘 没成功 最后一次试一下 C盘 按照上面重装步骤链接 一直报如下的错误 尝试了很多种解决步骤 也没成功
最后参考了如下的链接https://blog.csdn.net/victoriel/article/details/80659753
发现是因为我在net start mysql 之前 自行建立 了data文件目录 导致了出错 说无法启动
按照 https://blog.csdn.net/victoriel/article/details/80659753 链接中的方法 将data目录先删除 ,然后输入初始化命令 mysqld --initialize
最后才输入 net start mysql
重新启动服务,就能正常启动
最后在登录 修改密码