1. 解压zip包到安装目录
首先,将mysql-8.0.11-winx64.zip 解压缩到 安装D:/mysql-8.0.11-winx64 目录下,
2.配置文件
在安装根目录下添加 my.ini
基本配置文件(my)
[mysqld]
basedir = D:mysql-8.0.11-winx64
datadir = D:mysql-8.0.11-winx64data
port = 3306
lower_case_table_names = 2
default_authentication_plugin=mysql_native_password
参考 基本配置:
[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:ProgramMySQL
datadir = D:DBsMySQL<