天天看點

MySQL 8.0 安裝教程 步驟 (windows 64位)

https://dev.mysql.com/downloads/mysql/

MySQL 8.0 安裝教程 步驟 (windows 64位)
MySQL 8.0 安裝教程 步驟 (windows 64位)

解壓後的目錄沒有my.ini檔案,自行建立在安裝根目錄下my.ini(建立文本檔案,将檔案字尾改為的.ini),寫入配置:

配置檔案中的路徑要和實際存放的路徑一緻(8.0.18不要手動建立Data檔案夾)

MySQL 8.0 安裝教程 步驟 (windows 64位)
MySQL 8.0 安裝教程 步驟 (windows 64位)
MySQL 8.0 安裝教程 步驟 (windows 64位)
MySQL 8.0 安裝教程 步驟 (windows 64位)
MySQL 8.0 安裝教程 步驟 (windows 64位)
MySQL 8.0 安裝教程 步驟 (windows 64位)

如果初始化過程中系統出現上面的錯誤提示,請下載下傳相關的微軟更新檔并進行安裝。

輸入

會提示是否安裝成功 輸入

啟動Mysql服務

MySQL 8.0 安裝教程 步驟 (windows 64位)

複制粘貼剛才系統産生的初始密碼

MySQL 8.0 安裝教程 步驟 (windows 64位)
ALTER USER 'root'@'localhost' IDENTIFIED BY '新密碼' ;(更改密碼)

安裝好Navicat連接配接Mysql會出現錯誤框,因為Mysql8.0之後的版本加密對Navicat不認可,需要在Mysql中輸入以下語句進行修改

MySQL 8.0 安裝教程 步驟 (windows 64位)
alter user root@localhost identified by '123456' password expire never; alter user root@localhost identified with mysql_native_password by '123456'; flush privileges;

備注:123456為修改後的Mysql的密碼