[client]
#password	= [your_password]                                                 客户端登录验证的密码
port		= 3306                                                            连接端口
socket		= /application/mysql-5.5.32/tmp/mysql.sock                        客户端连接MySQL指定所需的socket
[mysqld]
port		= 3306                                                            服务端启动的MySQL端口
socket		= /application/mysql-5.5.32/tmp/mysql.sock                        服务端启动时产生的socket文件目录
back_log = 50                                                                     最大连接监听队列数
#skip-networking                                                                  TCP/IP 安全项  默认禁止
max_connections = 100                                                             最大同时保持连接数
max_connect_errors = 10                                                           允许最大错误量,超过将无法连接mysql
table_open_cache = 2048                                                            所有线程打开表的数量,对应mysqld的所需文件描述符数量
#external-locking                                                                 是否启用外部文件锁定,同文件跑多实例需打开。
max_allowed_packet = 16M                                                          单次查询允许的最大数值,
binlog_cache_size = 1M                                                            使用SQL语句时的单次换存量大小,默认即可
max_heap_table_size = 64M                                                         允许的最大尺寸为单个内存表
read_buffer_size = 2M                                                             每次读取数据的缓存大小
read_rnd_buffer_size = 16M                                                        有序读取数据,避免寻道的数据缓存大小
sort_buffer_size = 8M                                                             每个线程分配的排序缓冲区大小
join_buffer_size = 8M                                                             每个线程优化JOIN索引的缓冲区大小,稍大会减少索引对性能的影响
thread_cache_size = 8                                                             可以复用的保存在中的线程的数量
thread_concurrency = 8                                                            可以复用的保存在中的线程的数量。如果有,新的线程从缓存中取得,当断开连接的时候如果有空间,客户的线置在缓存中。如果有很多新的线程,为了提高性能可以这个变量值。
query_cache_size = 64M                                                            查询缓冲,MySQL将SELECT语句和查询结果存放在缓冲区中,今后对于同样的SELECT语句(区分大小写),将直接从缓冲区中读取结果。
query_cache_limit = 2M                                                            定单个查询能够使用的缓冲区大小
ft_min_word_len = 4                                                               最小字长通过全文搜索索引进行索引。
#memlock                                                                          如果系统支持MEMLOCK()函数调用,运行MySQL启用该选项,以保持它锁定在内存中,以避免高内存压力。默认关闭
default-storage-engine = MYISAM                                                   创建表不指定类型时的默认类型
thread_stack = 192K                                                               线程堆栈大小来使用的内存大小,MySQL的本身通常需要不超过64K的记忆
transaction_isolation = REPEATABLE-READ                                           设置默认的事务隔离级别  关闭即可
tmp_table_size = 64M                                                              内部临时表的最大大小
log-bin=mysql-bin                                                                 二进制日志目录
binlog_format=mixed                                                               二进制日志格式
#log_slave_updates                                                                使用复制与链式时,是否开启从线程进入从服务器的二进制日志
#log                                                                              是否启用完整日志,默认关闭
#log_warnings                                                                     是否输出打印错误日志
slow_query_log                                                                    是否开启登录慢查询
long_query_time = 2                                                               缓慢查询定义时间大小
server-id = 1                                                                     服务唯一标识号
#master-host =                                                          主从复制的主IP
#master-user =                                                          主从复制的主用户
#master-password =                                                      主从复制的主密码
#master-port =                                                              主从复制的主端口
#read_only                                                                        使主从复制的从只读
key_buffer_size = 32M                                                             索引块是缓冲的并且被所有的线程共享。用于索引块的缓冲区大小,增加它可得到更好处理的索引(对所有读和多重写)
bulk_insert_buffer_size = 64M                                                     树型的缓冲区的大小
myisam_sort_buffer_size = 128M                                                    配置InnoDB表的参数
myisam_max_sort_file_size = 10G                                                   MySQL的临时文件的最大大小
myisam_repair_threads = 1                                                         如果一个表有多个索引,MyISAM数据可以使用一个以上的线程通过并行排序进行修复
myisam_recover                                                                    自动检测和修复无法正常关闭的MyISAM表
#skip-innodb                                                                      去掉innodb支持
innodb_additional_mem_pool_size = 16M                                             InnoDB用来存储元数据附加的内存池信息大小
innodb_buffer_pool_size = 2G                                                      InnoDB用来存储元数据缓存大小
innodb_data_file_path = ibdata1:10M:autoextend                                    InnoDB的数据存储在形成所述表的一个或多个数据文件大小
#innodb_data_home_dir =                                                InnoDB表空间文件存放目录
innodb_write_io_threads = 8                                                       用于异步IO操作的IO写入线程号
innodb_read_io_threads = 8                                                        用于异步IO操作的IO读取线程号
#innodb_force_recovery=1                                                          InnoDB表损坏时是否帮助转储,从1开始增大,一直到转储成功
innodb_thread_concurrency = 16                                                    InnoDB的内核中允许的线程数量
innodb_flush_log_at_trx_commit = 1                                                如果设置为1时,InnoDB将刷新(FSYNC)的事务日志到硬盘在每次完整提交,将其设置为0或2,以减少磁盘I / O。值0意味着该日志仅写入日志文件,日志文件刷新到磁盘大约每秒一次。值2意味着该日志被写入日志文件在每次提交,但日志文件只刷新到磁盘大约每秒一次。
#innodb_fast_shutdown                                                             加速InnoDB的关闭
innodb_log_buffer_size = 8M                                                       缓冲器的InnoDB的大小使用缓冲日志数据大小
innodb_log_file_size = 256M                                                       日志组中每个日志文件大小
innodb_log_files_in_group = 3                                                     日志组中的文件总数
#innodb_log_group_home_dir                                                        InnoDB的日志文件的位置
innodb_max_dirty_pages_pct = 90                                                   允许的最大坏页InnoDB缓冲池的百分比
#innodb_flush_method=O_DSYNC                                                      InnoDB的日志刷新方式。该表空间总是使用双写刷新逻辑。
innodb_lock_wait_timeout = 120                                                    InnoDB的事务可回滚的锁定时间
[mysqldump]
max_allowed_packet = 16M                                                          不要缓冲整个结果在内存中的文件大小值
[mysql]
no-auto-rehash                                                                    是否开启自动补全
#safe-updates                                                                     只允许更新和使用键删除操作
[myisamchk]
key_buffer_size = 512M                                                            索引块的缓冲区大小
sort_buffer_size = 512M                                                           每个需要进行排序的线程分配该大小的一个缓冲区
read_buffer = 8M                                                                  读取缓存
write_buffer = 8M                                                                 写入缓存
[mysqlhotcopy]
interactive-timeout                                                               mysql在关闭一个交互的连接之前所要等待的秒数
[mysqld_safe]
open-files-limit = 8192                                                           每个进程允许打开的文件的数量