一:安装mysql5.7.16
1)解压mysql-5.7.16-winx64到指定文件夹下 ,路径为:E:\jee\mysql-5.7.16-winx64
2)拷贝my-default.ini,改名为my.ini
3)创建数据文件夹data到指定目录(一般情况下选择在mysql5.7.16文件夹下创建data文件夹)
4)在my.ini文件夹中添加mysql文件夹目录,数据文件目录,指定端口等。修改后全文件内容如下:
# 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] # 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 |