码迷,mamicode.com
首页 > 数据库 > 详细

mariaDB5.6

时间:2015-05-19 17:01:04      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

1.默认基本配置

[mysqld]
#character_set_server=utf8
datadir=D:/Program Files/MariaDB 10.0/data
port=3306
sql_mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
default_storage_engine=innodb
innodb_buffer_pool_size=505M
innodb_log_file_size=50M

[client]
port=3306

2.有一定优化的配置

[mysqld]
character_set_server=utf8
datadir=D:/Program Files/MariaDB 10.0/data
port=3306
explicit_defaults_for_timestamp=true
sql_mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
default_storage_engine=innodb
#######################################################
innodb_buffer_pool_size=505M
innodb_log_file_size=50M
innodb_log_buffer_size = 8M
innodb_log_file_size = 500M
innodb_log_files_in_group = 3
innodb_additional_mem_pool_size = 16M
innodb_autoinc_lock_mode = 1   #1基于表 2.基于行
innodb_buffer_pool_size = 2G
innodb_flush_log_at_trx_commit = 2
innodb_file_per_table=1
innodb_file_io_threads=4
innodb_io_capacity=2000
innodb_io_capacity_max=6000
innodb_lru_scan_depth=2000
innodb_thread_concurrency = 16
innodb_max_dirty_pages_pct = 90
#innodb_flush_method=O_DSYNC
innodb_flush_method=O_DIRECT
innodb_lock_wait_timeout = 120
########################################################
log-bin=mysql-bin
binlog_format=mixed
#binlog_format=ROW
sync_binlog=1
sync_relay_log=1
expire_logs_days=7
thread_stack = 240K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 128M
wait_timeout=30
slow_query_log
long_query_time = 2
back_log=1024
#skip-networking
max_connections = 1000
max_connect_errors = 10000000
table_open_cache = 2048
#external-locking
max_allowed_packet = 16M
binlog_cache_size = 2M
max_heap_table_size = 128M
read_buffer_size = 8M
read_rnd_buffer_size = 16M
sort_buffer_size = 8M
join_buffer_size = 64M
thread_cache_size = 1024
thread_concurrency = 8
query_cache_size = 128M
query_cache_limit = 64M

[client]
port=3306


mariaDB5.6

标签:

原文地址:http://my.oschina.net/jk409/blog/416723

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!