第一步:下载https://downloads.mysql.com/archives/community/
选择 Product Version 、Operating System:
选择64bIt 点击下载
第二步:管理员身份执行cmd
C:\Users\Administrator>e:
E:\>cd E:\mysql-5.7.35-winx64\bin
E:\mysql-5.7.35-winx64\bin>mysqld --install
The service already exists!
The current server installed: E:\mysql-5.7.35-winx64\bin\mysqld MySQL
第三步:打印出 临时密码 temporary password
E:\mysql-5.7.35-winx64\bin>mysqld --initialize --console
2022-04-12T02:31:50.812202Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2022-04-12T02:31:51.227577Z 0 [Warning] InnoDB: New log files created, LSN=45790
2022-04-12T02:31:51.291849Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2022-04-12T02:31:51.427224Z 0 [Warning] N