下载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"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章