[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
log-bin = /data/mysql/bin/mysqlbinlog
server-id = 1

log-bin-trust-function-creators = 1

#binlog-do-db = ProjectM

#binlog-ignore-db = mysql
server-id = 1001
#binlog-do-db = ProjectM
#binlog-ignore-db = mysql
binlog_format = "MIXED"
bind-address = 0.0.0.0
port = 3306
tadir = /data/mysql
basedir = /usr/local/mysql
socket = /tmp/mysql.sock
default-storage-engine = INNODB
character-set-server = utf8
back_log = 500
slow-query-log = on
slow-query-log-file = /data/mysql/centos-slow.log
long_query_time = 0.5
max_connections = 512
max_connect_errors = 102400
max_allowed_packet = 16M
query_cache_type = 1
query_cache_size = 32M
query_cache_limit = 1M
max_heap_table_size = 64M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 100
thread_concurrency = 8
thread_stack = 192K
ft_min_word_len = 4
tmp_table_size = 64M
binlog_cache_size = 1M
long_query_time = 100
key_buffer_size = 32M
myisam_repair_threads= 1
myisam_recover
wait_timeout = 28800
interactive_timeout = 28800
skip-name-resolve
sql-mode="NO_ENGINE_SUBSTITUTION"
transaction_isolation = REPEATABLE-READ
innodb_buffer_pool_size = 1G
innodb_lock_wait_timeout = 120
"/etc/my.cnf" 82L, 2304C written
[root@node1 data]# service mysql restart
ERROR! MySQL server PID file could not be found!
Starting MySQL.. SUCCESS!
[root@node1 data]# vim /etc/my.cnf
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
log-bin = /data/mysql/bin/mysqlbinlog
server-id = 1001
#binlog-do-db = ProjectM
#binlog-ignore-db = mysql
binlog_format = "MIXED"
bind-address = 0.0.0.0
port = 3306
datadir = /data/mysql
basedir = /usr/local/mysql
socket = /tmp/mysql.sock
default-storage-engine = INNODB
character-set-server = utf8
back_log = 500
slow-query-log = on
slow-query-log-file = /data/mysql/centos-slow.log
long_query_time = 0.5
max_connections = 512
max_connect_errors = 102400
max_allowed_packet = 16M
query_cache_type = 1
query_cache_size = 32M
query_cache_limit = 1M
max_heap_table_size = 64M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 100
thread_concurrency = 8
thread_stack = 192K
ft_min_word_len = 4
tmp_table_size = 64M
binlog_cache_size = 1M
long_query_time = 100
key_buffer_size = 32M
myisam_repair_threads= 1
myisam_recover
wait_timeout = 28800
interactive_timeout = 28800
skip-name-resolve
sql-mode="NO_ENGINE_SUBSTITUTION"
transaction_isolation = REPEATABLE-READ
innodb_buffer_pool_size = 1G
innodb_lock_wait_timeout = 120
innodb_thread_concurrency = 16
innodb_file_io_threads = 4
innodb_mirrored_log_groups = 1
innodb_flush_method = O_DIRECT
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 256M
innodb_log_buffer_size = 8M
innodb_log_files_in_group = 4
innodb_flush_log_at_trx_commit = 0
innodb_additional_mem_pool_size = 16M
innodb_data_file_path = ibdata1:10M:autoextend:max:400M
innodb_file_per_table = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
pager = more
no-auto-rehash
prompt = '[\u@\h] (\d) \R:\m> '
[isamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 8M
write_buffer= 8M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 8M
write_buffer= 8M
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
open-files-limit= 65535
user = mysql
log-error = /data/mysql/data/centos.err
pid-file = /data/mysql/data/centos.pid

最新文章

  1. 【转载】Android 自动化测试 Emmagee
  2. js操作DOM动态添加和移除事件
  3. lamp环境搭配(centos6.4)
  4. Servlet,GenericServlet和HttpServlet的继承关系
  5. 【secureCRT】永久设置背景色和文字颜色
  6. mysql监控管理工具--innotop
  7. SQL点滴8—the account is currently locked out. The system administrator can unlock it.
  8. UIImageView 的contentMode属性应用
  9. selenium自动化测试学习(一)
  10. k8s滚动更新(六)--技术流ken
  11. nginx的概念与几种负载均衡算法
  12. 基于SVM的鸢尾花数据集分类实现[使用Matlab]
  13. Shiro授权管理
  14. 深度学习原理与框架-Tfrecord数据集的读取与训练(代码) 1.tf.train.batch(获取batch图片) 2.tf.image.resize_image_with_crop_or_pad(图片压缩) 3.tf.train.per_image_stand..(图片标准化) 4.tf.train.string_input_producer(字符串入队列) 5.tf.TFRecord(读
  15. 机器学习(二)--------单变量线性回归(Linear Regression with One Variable)
  16. 12C -- DDL日志
  17. border-color: transparent rgb(255, 48, 48) transparent transparent;
  18. WPF视频会议系统资料
  19. C语言 · 陶陶摘苹果2
  20. springboot测试service层的单元测试

热门文章

  1. Lodop打印设计里的 打印项对齐
  2. How to remove unwant Explorer Context Menu
  3. faster rcnn训练详解
  4. BizTalk Server 如何处理大消息
  5. python----re正则模块详解
  6. BZOJ3165[Heoi2013]Segment——李超线段树
  7. Cetos 7 防火墙设置
  8. 怎么用Verilog语言描述同步FIFO和异步FIFO
  9. bzoj1559 [JSOI2009]密码
  10. 【题解】 bzoj2462: [BeiJing2011]矩阵模板