下载
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.27-winx64.zip
解压
初始化
创建data目录
E:\wupeiqi\mysql-5.7.16-winx64\mysql-5.7.16-winx64\bin\mysqld --initialize-insecure
遇到的错误:mysqld: Could not create or access the registry key needed for the MySQL application to log to the Windows EventLog. Run the application with sufficient privileges once to create the key, add the key manually, or turn off
logging for that application.
解决方法:以管理员身份运行cmd
加入环境变量:
右键我的电脑--属性--高级系统属性--高级--环境变量--(双击)path---新建