[client]

port = 3306

socket = /data1/mysql/3306/mysql.sock

default-character-set=latin1

[mysqld]

port = 3306

socket = /data1/mysql/3306/mysql.sock

#basedir =

datadir = /data1/mysql/3306/data

pid-file = /data1/mysql/3306/mysql.pid

lower_case_table_names=1

#slow log

#also can be FILE,TABLE or TABLE or NONE

log_output=FILE

slow-query-log = 1

long_query_time = 5

slow_query_log_file = /data1/mysql/3306/logs/slow.log


skip-name-resolve


# ****** MyISAM Engine options******

open_files_limit = 10240

back_log = 600

table_open_cache = 614

table_definition_cache = 614

external-locking = FALSE

max_allowed_packet = 32M


sort_buffer_size = 2M

join_buffer_size = 2M

thread_cache_size = 300

thread_concurrency = 8

query_cache_size = 256M

query_cache_limit = 2M

query_cache_min_res_unit = 2k

thread_stack = 192K

concurrent_insert = 2

default-storage-engine = INNODB

transaction_isolation = READ-COMMITTED

tmp_table_size = 246M

max_heap_table_size = 246M


# ****** slave mysql db ******


### Add By wb, salve DB Configuration

server-id = 3

log-bin = /data1/mysql/3306/logs/binlogs/mysql-bin

relay-log=relay-bin

relay-log-index=relay-bin-index

log-error = /data1/mysql/3306/logs/error.log

replicate-ignore-db=mysql

replicate-wild-ignore-table=mysql.%

slave-net-timeout=60

#log-slave-updates



#replicate_wild_ignore_tabl= test.%

#slave-skip-errors = 1062


binlog_cache_size = 32M

binlog_format = MIXED

#binlog-format=STATEMENT

max_binlog_cache_size = 4G

max_binlog_size = 1G

expire_logs_days = 7


key_buffer_size = 512M

read_buffer_size = 2M

read_rnd_buffer_size = 16M

bulk_insert_buffer_size = 64M

myisam_sort_buffer_size = 128M

myisam_max_sort_file_size = 10G

myisam_repair_threads = 1

myisam_recover


connect_timeout=60

max_connections = 5000

max_connect_errors = 600000


wait_timeout= 604800

interactive_timeout= 6048000


# ****** InnoDB Engine options******

innodb_additional_mem_pool_size = 16M

innodb_buffer_pool_size = 4G

innodb_buffer_pool_size = 512M

innodb_data_file_path = ibdata1:2G:autoextend

innodb_file_io_threads = 4

innodb_thread_concurrency = 8

innodb_flush_log_at_trx_commit = 0

innodb_log_buffer_size = 16M

innodb_log_file_size = 128M

innodb_log_files_in_group = 3

innodb_max_dirty_pages_pct = 90

innodb_lock_wait_timeout = 120

innodb_file_per_table = 0


[mysqldump]

quick

max_allowed_packet = 32M