mysql5.7版本windows的安装,
mysql-5.5.46-win32.msi;mysql-5.5.46-winx64.msi;mysql-5.7.12-winx64.msi
5.5的版本安装后自动调用初始化和序进行初始化工作(由MySQLInstanceConfig.exe完成),不过5.7版本开始要进行自行初始化.
下面开始说5.7windows版本的安装.
1. 先正常安装,当然也可以自定义,选择好安装目录.我这里选择.D:\盘,安装好的路径为
“ D:\Program Files\MySQL\MySQL Server 5.7 ”
2. 然后copy一下 my-default.ini 复制一分为 my.ini 这个文件。
然后修改这个文件。
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
character-set-server=utf8mb4
collation-server=utf8_general_ci
#init_connect='SET NAMES utf8mb4'
# 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