二、mysql配置文件模板
2014-12-01 16:46
288 查看
引用《高性能MySQL》第8章
my.cnf内容:
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
[mysqld]
# basedir = .....
# server_id = .....
datadir = /var/lib/mysql
port = 3306
socket = /var/lib/mysql/mysql.sock
pid_file = /var/lib/mysql/mysql.pid
user = mysql
default_storage_engine = InnoDB
# InnoDB
innodb_buffer_pool_size = <value>
innodb_log_file_size = <value>
innodb_file_per_table = 1
innodb_flush_nethod = 0_DIRECT
# MyISAM
key_buffer_size = <value>
# log
# log_bin
log_error = /var/lib/mysql/mysql-error.log
slow_query_log = /var/lib/mysql/mysql-slow.log
# other
tmp_table_size = 32M
max_heap_table_size = 32M
query_cache_type = 0
query_cache_size = 0
max_connections = <value>
thread_cache = <value>
table_cache = <value>
open_files_limit = 65535
[client]
socket = /var/lib/mysql/mysql.sock
port = 3306
# 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
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
my.cnf内容:
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
[mysqld]
# basedir = .....
# server_id = .....
datadir = /var/lib/mysql
port = 3306
socket = /var/lib/mysql/mysql.sock
pid_file = /var/lib/mysql/mysql.pid
user = mysql
default_storage_engine = InnoDB
# InnoDB
innodb_buffer_pool_size = <value>
innodb_log_file_size = <value>
innodb_file_per_table = 1
innodb_flush_nethod = 0_DIRECT
# MyISAM
key_buffer_size = <value>
# log
# log_bin
log_error = /var/lib/mysql/mysql-error.log
slow_query_log = /var/lib/mysql/mysql-slow.log
# other
tmp_table_size = 32M
max_heap_table_size = 32M
query_cache_type = 0
query_cache_size = 0
max_connections = <value>
thread_cache = <value>
table_cache = <value>
open_files_limit = 65535
[client]
socket = /var/lib/mysql/mysql.sock
port = 3306
# 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
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
相关文章推荐
- MySQL5.5数据库my.cnf配置文件模板
- MySQL 5.6 & 5.7最优配置文件模板
- MySQL5.5数据库my.cnf配置文件模板
- 网上流传的 基于MySQL 5.6和5.7的配置文件模板
- mysql配置文件my.cnf模板
- MySQL5.5数据库my.cnf配置文件模板
- MySQL配置文件模板
- MySQL最优配置文件模板·2016-11-28
- MySQL配置文件模板
- MySQL 5.6 & 5.7最优配置文件模板(my.ini)
- MySQL5.5配置文件模板
- MySQL5.5数据库my.cnf配置文件模板
- MySQL 5.6 & 5.7最优配置文件模板(my.ini)
- Mysql my.ini 配置文件详解
- Mysql my.ini 配置文件详解
- MySQL配置文件my.cnf 例子最详细翻译
- hibernate配置文件模板
- Mysql my.ini 配置文件详解
- PHP - Smarty模板引擎 - Manual手册 - Chapter 7. Built-in Functions第7章 内建函数 - {config_load}用于从一个配置文件加载配置变量到模板中
- MySQL配置文件my.cnf中文版