标签:style http ar io color os 使用 sp for
一、环境与下载地址:
1、系统下载地址:
http://mirrors.sohu.com/centos/6.6/isos/x86_64/CentOS-6.6-x86_64-bin-DVD1.iso
2、mysql下载地址:
#my.cnf[client]port = 3306socket = /tmp/mysql.sock [mysql]prompt=[master]>#pager="less -i -n -S"tee=/data/mysql/mysql_3306/data/query.logno-auto-rehash [mysqld_multi]mysqld = /usr/local/mysql/bin/mysqld_safemysqladmin = /usr/local/mysql/bin/mysqladminlog = /opt/mysql/mysqld_multi.log [mysqld]#miscexplicit_defaults_for_timestamp = ture
user = mysqlbasedir = /usr/local/mysqldatadir = /data/mysql/mysql_3306/dataport = 3306socket = /tmp/mysql.sockevent_scheduler = 0 #timeoutinteractive_timeout = 300wait_timeout = 300 #character setcharacter-set-server = utf8 open_files_limit = 65535max_connections = 100max_connect_errors = 100000 skip-name-resolve = 1#logslog-output=fileslow_query_log = 1slow_query_log_file = slow.loglog-error = /data/mysql/mysql_3306/data/error.loglog_warnings = 2pid-file = mysql.pidlong_query_time = 1#log-slow-admin-statements = 1#log-queries-not-using-indexes = 1log-slow-slave-statements = 1 #binlogbinlog_format = mixedserver-id = 2003306log-bin = /data/mysql/mysql_3306/logs/mybinlogbinlog_cache_size = 4Mmax_binlog_size = 1Gmax_binlog_cache_size = 2Gsync_binlog = 0expire_logs_days = 10 #relay logskip_slave_start = 1max_relay_log_size = 1Grelay_log_purge = 1relay_log_recovery = 1log_slave_updates#slave-skip-errors=1032,1053,1062 #buffers & cachetable_open_cache = 2048table_definition_cache = 2048table_open_cache = 2048max_heap_table_size = 96Msort_buffer_size = 2Mjoin_buffer_size = 2Mthread_cache_size = 256query_cache_size = 0query_cache_type = 0query_cache_limit = 256Kquery_cache_min_res_unit = 512thread_stack = 192Ktmp_table_size = 96Mkey_buffer_size = 8Mread_buffer_size = 2Mread_rnd_buffer_size = 16Mbulk_insert_buffer_size = 32M #myisammyisam_sort_buffer_size = 128Mmyisam_max_sort_file_size = 10Gmyisam_repair_threads = 1 #innodbinnodb_buffer_pool_size = 100Minnodb_buffer_pool_instances = 1innodb_data_file_path = ibdata1:1G:autoextendinnodb_flush_log_at_trx_commit = 1innodb_log_buffer_size = 64Minnodb_log_file_size = 256Minnodb_log_files_in_group = 3innodb_max_dirty_pages_pct = 50innodb_file_per_table = 1innodb_rollback_on_timeoutinnodb_status_file = 1innodb_io_capacity = 2000transaction_isolation = REPEATABLE-READinnodb_flush_method = O_DIRECT #端口号为3306的实例特殊配置[mysqld3306]port =3306#指定本实例相应版本的basedir和datadirbasedir= /usr/local/mysqldatadir = /data/mysql/mysql_3306/datasocket = /tmp/mysql_3306.sock#重新配置这几个选项,不与全局配置一样,会直接覆盖上面的全局设置innodb_buffer_pool_size = 100mtransaction_isolation = REPEATABLE-READ [mysqld3308]port=3308basedir= /usr/local/mysqldatadir = /data/mysql/mysql_3308/datasocket = /tmp/mysql_3308.sock#重新配置这几个选项,不与全局配置一样,会直接覆盖上面的全局设置innodb_buffer_pool_size = 100minnodb_flush_log_at_trx_commit = 2sync_binlog = 0 标签:style http ar io color os 使用 sp for
原文地址:http://www.cnblogs.com/abobo/p/4169828.html