MySQL 8.0 Windows zip 安装过程介绍,具体如下
准备:
MySQL8.0 Windows zip包下载地址。
环境:Windows 10
一、安装
1. 解压zip包到安装目录
比如我的安装目录是:D:\Program\MySQL
2.配置文件
在Windows系统中,配置文件默认是安装目录下的 my.ini 文件,部分配置需要在初始安装时配置,大部分也可以在安装完成后进行更改。当然,极端情况下,所有的都是可以更改的。
在安装根目录下添加 my.ini,比如我这里是:D:\Program\MySQL\my.ini,写入基本配置:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
[mysqld] # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # These are commonly set, remove the # and set as required. basedir = D:\Program\MySQL datadir = D:\DBs\MySQL port = 3306 # server_id = ..... |