1.MySQL官网下载mysql5.7.35 压缩包
打开MySQL Community Server官网:https://downloads.mysql.com/archives/community/
2.解压压缩包到
3.配置环境变量MYSQL_HOME,并将%MYSQL_HOME%\bin配置到环境变量PATH
4.以管理员身份运行CMD,进入%MYSQL_HOME%\bin目录,执行mysqld --initialize --console
5.安装MySQL57服务:CMD执行mysqld --install MYSQL57
6.启动MySQL57服务:CMD执行net start mysql57
7.登录MySQL5.7:CMD执行mysql -u root -P 3305 -h localhost -p U7#QSigua+>.
8.修改root用户密码:alter user 'root'@'localhost' identified by '123456';
7.停止MySQL57服务:CMD执行net stop mysql57