win7 64位下如何安装配置mysql-5.7.5-m15-winx64
距离上次安装MySQL已经过去好久了。步骤这些,有可能会忘记。简单记录一下吧。(参考了一些网络上的博客。)
1.mysql-5.7.5-m15-winx64.zip下载
官方网站下载地址:http://cdn.mysql.com/Downloads/MySQL-5.7/mysql-5.7.5-m15-winx64.zip
2.解压到D:\MySqlDataBase
3.在D:\MySqlDataBase\mysql-5.7.5-m15-winx64下新建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. [client] default-character-set=utf8 [mysqld] port=3306 basedir ="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/" datadir ="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/" tmpdir ="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/" socket ="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/mysql.sock" log-error="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/mysql_error.log" #server_id = 2 #skip-locking max_connections=100 table_open_cache=256 query_cache_size=1M tmp_table_size=32M thread_cache_size=8 innodb_data_home_dir="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/" innodb_flush_log_at_trx_commit =1 innodb_log_buffer_size=128M innodb_buffer_pool_size=128M innodb_log_file_size=10M innodb_thread_concurrency=16 innodb-autoextend-increment=1000 join_buffer_size = 128M sort_buffer_size = 32M read_rnd_buffer_size = 32M max_allowed_packet = 32M explicit_defaults_for_timestamp=true sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES ####################配置文件结束###################