01、去官网下载zip包 https://dev.mysql.com/downloads/mysql/
02、在本地某目录解压压缩包(我这里是D:\dev\mysql8\mysql1\mysql-8.0.16-winx64)
03、在解压后的目录下创建文件夹data(这个文件夹名称不一定非要叫data)和文件my.ini,文件夹结构如下图所示:
04、my.ini的内容如下:
[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