my.conf

线上my.cnf的配置文件,机器是48G内存,12*15K 300GSAS机器,DELL R510。
可以参考,不同的配置设置不一样,所以建议拿去仅作参考。

# MySQL configure file.
# MySQL_version 5.5.12
# Version 1.1
# Date    2011-05-15

# The MySQL server
[mysqld]
port                            = 4714
user                            = my4714
datadir                         = /data1/mysql4714
tmpdir                          = /dev/shm
slave-load-tmpdir               = /tmp
socket                          = /tmp/mysql4714.sock
key_buffer_size                 = 64M
max_allowed_packet              = 16M
table_cache                     = 2048
join_buffer_size                = 16M
sort_buffer_size                = 16M
read_buffer_size                = 16M
read_rnd_buffer_size            = 32M
myisam_sort_buffer_size         = 128M
query_cache_size                = 256M
query_cache_limit               = 8M
query_cache_type                = off
max_tmp_tables                  = 256
tmp_table_size                  = 128M
max_heap_table_size             = 128M
thread_cache                    = 64
thread_concurrency              = 32
max_connect_errors              = 99999999
slow-query-log                  = 1
slow-query-log-file             = slow.log
back_log                        = 600
myisam_repair_threads           = 1
myisam-recover                  = DEFAULT
expire_logs_days                = 10
interactive_timeout             = 28800
wait_timeout                    = 28800

#old_passwords=1
skip-slave-start
skip-name-resolve
max_user_connections   = 8000
max_connections   = 8096
character-set-server   = utf8
read_only = 0
log-slave-updates = 1
#-------------    innodb  --------------
innodb_file_format              = Barracuda
default-storage-engine          = InnoDB
innodb_buffer_pool_size         = 4G
innodb_additional_mem_pool_size = 32M
innodb_data_file_path           = ibdata1:100M:autoextend
innodb_flush_log_at_trx_commit  = 0
innodb_log_buffer_size          = 8M
innodb_log_file_size            = 1300M
innodb_log_files_in_group       = 3
innodb_max_dirty_pages_pct      = 90
innodb_lock_wait_timeout        = 20
innodb_file_per_table           = 1
innodb_flush_method             = O_DIRECT
innodb_support_xa               = 0
innodb_io_capacity              = 500
innodb_buffer_pool_instances    = 4
replicate_wild_ignore_table = status_%.status_09%
replicate_wild_ignore_table = status_%.status_10%
replicate_wild_ignore_table = status_%.status_12%

server-id                    = 112014714
log-bin                         = mysql-bin
relay-log                       = relay-bin
log-error                       = error.log

#new cnf by auto rebuild
slow_query_log_file             = slow.log

[client]
user                            = xxxxxx
password                        = xxxxxxx
port                            = 4714
socket                          = /tmp/mysql4714.sock
no-auto-rehash
character_set_client            = utf8

[myisamchk]
key_buffer_size                 = 64M
sort_buffer_size                = 32M
read_buffer                     = 16M
write_buffer                    = 16M
时间: 2024-10-23 05:07:52

my.conf的相关文章

linux下Nginx配置文件(nginx.conf)配置设置详解(windows用phpstudy集成)

linux备份nginx.conf文件举例: cp /usr/local/nginx/nginx.conf /usr/local/nginx/nginx.conf-20171111(日期) 在进程列表里 面找master进程,它的编号就是主进程号. ps -ef | grep nginx 查看进程 cat /usr/local/nginx/nginx.pid 每次修改完nginx文件都要重新加载配置文件linux命令: /usr/local/nginx -t //验证配置文件是否合法 若ngin

常见redis.conf解析

参数说明redis.conf 配置项说明如下:1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程daemonize no2. 当Redis以守护进程方式运行时,Redis默认会把pid写入/var/run/redis.pid文件,可以通过pidfile指定pidfile /var/run/redis.pid3. 指定Redis监听端口,默认端口为6379,作者在自己的一篇博文中解释了为什么选用6379作为默认端口,因为6379在手机按键上MERZ对应的号码

redis的redis.conf文件详解

是2.6.12版本的 1 redis.conf配置文件 2 3 # Redis configuration file example 4 5 # Note on units: when memory size is needed, it is possible to specifiy 6 # it in the usual form of 1k 5GB 4M and so forth: 7 # 8 # 1k => 1000 bytes 9 # 1kb => 1024 bytes 10 # 1m

sentinel.conf配置

1.常用的配置 port 26379 # sentinel announce-ip <ip> # sentinel announce-port <port> dir "/tmp" ################################# master001 ################################# sentinel monitor master001 192.168.110.103 6379 2 # sentinel auth

“intel_rapl: no valid rapl domains” message upon boot blacklist.conf -1

"intel_rapl: no valid rapl domains" message upon boot I install fresh Ubuntu 14. 04 server under ESXI 5.1.0.During my installation I did not get any erorrs or strange things. My problem is when I boot machine at console screen I get messages lik

Ubunto 安装Apache2以后 httpd.conf文件找不到问题

如果使用subo apt-get install apache2命令安装的apache,如果发生httpd.conf文件找不到问题,不妨看看下面的文章说明 文章联接:http://wiki.ubuntu.org.cn/Apache#.E9.85.8D.E7.BD.AEapache

Nginx配置文件nginx.conf中文详解

#定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数. worker_processes 8; #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log /var/log/nginx/error.log info; #进程文件 pid /var/run/nginx.pid; #一个nginx进程打开的最多文件描述符数目,理论值应该是最多打开文件数(系统的值

windows下启动redis提示Invalid argument during startup: Failed to open the .conf file: redis.windows.connf CWD=C:\Users\Administrator

环境:Windows 7 64bit 旗舰版 redis 3.2.100 64bit 开始的时候,redis运行的好好的,不过每次启动都要要进入其路径,挺麻烦的,所以就想把它的路径设置到环境变量里,然后直接运行就出现错误:Invalid argument during startup:Failed to open the .conf file: redis.windows.connf CWD=C:\Users\Administrator 网上搜索了好久也找不到解决办法.后来想是不是因为环境变量的

fastcgi_params 与 fastcgi.conf的差异

fastcgi.conf 对比下fastcgi.conf与fastcgi_params文件,可以看出只有以下差异: Java代码   tctq4master@ddd:/etc/nginx$ diff fastcgi.conf  fastcgi_params 2d1 < fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name; 25a25,26 > > fastcgi_param  SCRIPT_FILENA

解决clover配置文件conf.plist中nv_disable=1或者nvda_drv=1不生效或者说不能删除的问题

情况一:U盘安装MacOS的时候conf.plist中设置了nv_disable=1,但是启动的时候任然显示nvda_drv=1. 这种情况一般出现在该机器曾经安装过MacOS,MacOS会将这个参数信息保存在内存区域中,这个时候无论你是更换EFI的任何一个问题或者是在clover启动界面去勾选也好,都无法生效,只有2个办法可以解决 1.刷BIOS版本 2.用单用户模式进入然后执行sudo nvram -c,这样就可以重置NVRAM 情况二:系统已经安装好了的情况下,配置了nvda_drv=1但