下載
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---新建