1.解压mysql-5.7.15-winx64.zip到D:\MySQL Server 5.7(你想安装的位置) 2.如果机器上安装过其他版本的mysql先删除环境变量PATH中的mysql路径,然后再进行以下步骤,注意端口号和服务名称不能重复: 3.根目录下新建文件my.ini,将以下内容写入文件 [mysqld] basedir=D:\MySQL Server 5.7 datadir=D:\MySQL Server 5.7\data port=3308 3.管理员权限打开(cmd) 进入D:
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.6/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