mariaDB5.6

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
#----------------------------------------------------------
[mysqld]
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
character_set_server=utf8
server-id=3
log_bin= mysql-bin
innodb_flush_log_at_trx_commit=1
sync_binlog=1

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


转载于:https://my.oschina.net/jk409/blog/416723

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值