下載mysql歷史版本地址 並安裝MySQL Community Server 5.7.24

下載mysql歷史版本地址:https://downloads.mysql.com/archives/community/
下載mysql地址
下載了 MySQL Community Server 5.7.24
並開始安裝:
安裝網上很多,選擇教程:windows下MySQLCommunity Server 5.7.24 安裝方法

教程有些小問題,
1.my.ini在bin目錄下是沒有,直接複製下面代碼即可:

[mysql]
# 設置mysql客戶端默認字符集
default-character-set=utf8 
[mysqld]
#設置3306端口
port = 3306 
# 設置mysql的安裝目錄
basedir=D:\mysql-5.7.24-winx64
# 設置mysql數據庫的數據的存放目錄
datadir=D:\mysql-5.7.24-winx64\data
# 允許最大連接數
max_connections=200
# 服務端使用的字符集默認爲8比特編碼的latin1字符集
character-set-server=utf8
# 創建新表時將使用的默認存儲引擎
default-storage-engine=INNODB 

2.臨時密碼位置,不太好找,需要仔細看英文: joepvsEcu6&(這個是臨時密碼

D:\mysql-5.7.24-winx64\bin>mysqld --initialize --user=mysql --console
2019-03-04T09:17:41.729984Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is
 deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
2019-03-04T09:17:44.088984Z 0 [Warning] InnoDB: New log files created, LSN=45790

2019-03-04T09:17:44.495984Z 0 [Warning] InnoDB: Creating foreign key constraint
system tables.
2019-03-04T09:17:44.625984Z 0 [Warning] No existing UUID has been found, so we a
ssume that this is the first time that this server has been started. Generating
a new UUID: 5e963599-3e5e-11e9-a0da-309c23357e16.
2019-03-04T09:17:44.650984Z 0 [Warning] Gtid table is not ready to be used. Tabl
e 'mysql.gtid_executed' cannot be opened.
2019-03-04T09:17:44.675984Z 1 [Note] A temporary password is generated for root@
localhost: joepvsEcu6&(

D:\mysql-5.7.24-winx64\bin>mysqld install MySQL --defaults-file="D:\mysql-5.7.24
-winx64\bin\my.ini"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章