如题,最新的都是只有免安装版的,可以官网下载zip的压缩包。
下载后解压,如下
下面就开始配置
1、在path中添加环境变量
;D:\coding\mysql-5.7.18-winx64\bin; ← 根据自己的实际解压后文件夹的路径(注意跟前面的配置用;隔开)
2、配置ini文件
可以看到最新版的解压后根目录没有xxx.ini的配置文件。我们可以从别的地方拷贝一个,
或者点此下载链接:http://pan.baidu.com/s/1pL6uxuF 密码:m2r7
也可以自己新建一个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] # 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:\coding\mysql-5.7.18-winx64 datadir = D:\coding\mysql-5.7.18-winx64\data port = 3306 max_connections=20 character_set_server=utf8 # server_id = ..... # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M explicit_defaults_for_timestamp=true sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES [WinMySQLAdmin] D:\coding\mysql-5.7.18-winx64\bin\mysqld.exe