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 required.
# 设置mysql的安装目录
basedir = D:\dev\mysql8\m

本文详细介绍了如何在Windows上安装MySQL 8.0.16的Zip压缩版,包括从官网下载zip包、解压、创建my.ini配置文件、初始化数据库、安装服务、启动服务、设置初始密码以及解决安装过程中可能出现的问题。
最低0.47元/天 解锁文章
638

被折叠的 条评论
为什么被折叠?



