執行 MySQL 安裝精靈第 2 步配置時彈出:
"Configuration file template E:\網站\mysql\my-template.ini could not be processed and written to E:\網站\mysql\my.ini. Error code -1."
網站)E:\MySQL\mysql-5.6、C:\MySQL安裝最後一步彈出:
Error 1045: Access denied for user 'root'@'localhost' (using password: YES)
推薦: D:\MySQL\mysql-5.6.29 禁止: D:\Program Files\MySQL\ (含空格) 禁止: D:\軟件\MySQL\ (含中文) 禁止: D:\MySQL@Server\ (含特殊符號)
:: 管理員 CMD cd /d D:\MySQL\mysql-5.6.29\bin mysqld --initialize-insecure --user=mysql mysqld --install MySQL56 --defaults-file="D:\MySQL\mysql-5.6.29\my.ini" net start MySQL56
系統變數 Path 新增 D:\MySQL\mysql-5.6.29\bin
MySQL Windows 安裝兩大經典坑:路徑含中文 → 配置檔生成失敗、Root 密碼欄位填值 → 1045 認證失敗。核心原則:純英文路徑 + 安裝時密碼留空 + 事後手動設定強密碼。免安裝版部署更可控,推薦生產/測試環境統一採用。