标签:
操作系统:windows 2003 安装及配置步骤:
1,解压缩mysql;
2,创建my.ini文件并写入一下内容:
[client] no-beep port=3369 default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] port=3369 #mysql解压目录 basedir=D:/mysql_test/mysql-5.6.22-winx64 #mysql数据文件所在位置 datadir=D:/mysql_test/mysql-5.6.22-winx64/data character-set-server=utf8 default-storage-engine=INNODB sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" # General and Slow logging. log-output=FILE general-log=0 general_log_file="WIN-SAN3COGQ5SE.log" slow-query-log=1 #慢查询日志文件存放位置 slow_query_log_file="D:/mysql_test/mysql-5.6.22-winx64/slow_sql_log.log" long_query_time=5 log-error="WIN-SAN3COGQ5SE.err" server-id=1 max_connections=151 query_cache_size=512M table_open_cache=2000 tmp_table_size=706M thread_cache_size=16 #*** MyISAM Specific options myisam_max_sort_file_size=10G myisam_sort_buffer_size=2G key_buffer_size=8M read_buffer_size=64K read_rnd_buffer_size=256K sort_buffer_size=32M #*** INNODB Specific options *** innodb_additional_mem_pool_size=32M innodb_flush_log_at_trx_commit=0 innodb_log_buffer_size=16M innodb_buffer_pool_size=4G innodb_log_file_size=1024M innodb_thread_concurrency=33 innodb_autoextend_increment=64 innodb_buffer_pool_instances=16 innodb_concurrency_tickets=5000 innodb_old_blocks_time=1000 innodb_open_files=300 innodb_stats_on_metadata=0 innodb_file_per_table=1 innodb_checksum_algorithm=0 back_log=80 flush_time=0 join_buffer_size=32M max_allowed_packet=24M max_connect_errors=100 open_files_limit=4161 query_cache_type=1 sort_buffer_size=32M table_definition_cache=1400 binlog_row_event_max_size=8K sync_master_info=10000 sync_relay_log=10000 sync_relay_log_info=10000
标签:
原文地址:http://my.oschina.net/kzhou/blog/358344