{"rsdb":{"rid":"314258","subhead":"","postdate":"0","aid":"227499","fid":"57","uid":"1","topic":"1","content":"

\u7531\u4e8e\u4e1a\u52a1\u9700\u8981\u5728MySQL\u5b9e\u4f8b\u4e2d\u521b\u5efa\u90e8\u5206\u5e93\u7684\u4ece\u5e93\uff0c\u5df2\u6709\u7684Mysql\u5b9e\u4f8b\u7684\u7248\u672c\u662fmysql-5.5.49\uff0c\u662f\u4e00\u4e2a\u975e\u5e38\u8001\u7684\u7248\u672c\u3002<\/p>

\u672c\u6587\u6863\u6d89\u53ca\u5230\u670d\u52a1\u5668\u4e2d\u8fd0\u884c\u591a\u5b9e\u4f8b\u548c\u6784\u5efa\u5b9e\u4f8b\u4e2d\u90e8\u5206\u5e93\u7684\u4ece\u5e93\u3002<\/p>

1\u3001\u670d\u52a1\u56682\u4e0a\u521b\u5efa3307\u5b9e\u4f8b<\/p>

\u9996\u5148\u9700\u8981\u51c6\u5907\u6e90\u7801\u7f16\u8bd1\u5305\uff0c\u8fd9\u4e2a\u5c31\u4e0d\u5728\u63cf\u8ff0\u4e86\u3002\u7531\u4e8e\u6211\u670d\u52a1\u56682\u4e0a\u5df2\u7ecf\u5b58\u5728\u4e86\u4e00\u4e2a\u540c\u6837\u7248\u672c\u7684\u5b9e\u4f8b\uff0c\u6211\u5c31\u76f4\u63a5copy\u4e00\u4efd\uff0c\u547d\u540d\u4e3a\uff1a mysql-5.5.49_3307 \uff0c\u5e76\u505a\u4e86\u4e00\u4e2a\u8f6f\u8fde\u63a5<\/p>

ln -s mysql-5.5.49_3307 mysql_3307<\/p>

\u670d\u52a1\u56682\u76843307\u5b9e\u4f8b\u662f\u4ece\u5e93\uff0cmy.cnf\u7684\u914d\u7f6e\u6700\u597d\u670d\u52a1\u56681\u4e3b\u5e93\u5b9e\u4f8b\u7684\u914d\u7f6e\u76f8\u540c\uff0c\u6ce8\u610f\u4fee\u6539\u5bf9\u5e94server_id<\/p>

[client]
port            = 3307
socket          = \/tmp\/mysql_3307.sock<\/p>

[mysqld]
port            = 3307
socket          = \/tmp\/mysql_3307.sock
datadir        = \/opt\/mysql_3307
tmpdir=\/tmp<\/p>

skip-name-resolve
log_warnings = 2<\/p>

#skip-grant-tables
big_tables              = on
back_log                = 600
max_connections        = 3000
max_connect_errors      = 3000
table_open_cache        = 2048
max_allowed_packet      = 128M
binlog_cache_size      = 4M
max_heap_table_size    = 1024M
read_buffer_size        = 16M
read_rnd_buffer_size    = 16M
sort_buffer_size        = 8M
join_buffer_size        = 16M
thread_cache_size      = 600
thread_concurrency      = 16
query_cache_size        = 512M
query_cache_limit      = 32M
default-storage-engine  = MYISAM
#thread_stack          = 192K
#transaction_isolation  = REPEATABLE READ
tmp_table_size          = 1024M<\/p>

server-id              = 10155
log-bin                = mysql-bin
binlog_format          = mixed
expire_logs_days        = 8<\/p>

replicate_wild_ignore_table  = performance_schema.%
replicate_wild_ignore_table  = information_schema.%
replicate_wild_ignore_table  = mysql.%
replicate_wild_ignore_table  = test.%
replicate_wild_ignore_table  = tmp.%
#skip-name-resolve<\/p>

slave_net_timeout      = 30
#master-connect-retry  = 10<\/p>

log-slave-updates      = 1<\/p>

slow_query_log          = sql-slow.log
long_query_time        = 5
slave-skip-errors      = 1062,1236<\/p>

key_buffer_size                = 2G
bulk_insert_buffer_size        = 64M
myisam_sort_buffer_size        = 128M
myisam_max_sort_file_size      = 4G
myisam_repair_threads          = 1
myisam_recover<\/p>

innodb_additional_mem_pool_size = 16M
innodb_buffer_pool_size = 4G
innodb_data_file_path = ibdata1:256M:autoextend
innodb_write_io_threads = 8
innodb_read_io_threads = 8
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 16M
innodb_log_file_size = 256M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 60
innodb_file_per_table  = 1<\/p>

[mysqldump]
quick
max_allowed_packet = 32M<\/p>

[mysql]
no-auto-rehash<\/p>

[myisamchk]
key_buffer_size = 512M
sort_buffer_size = 512M
read_buffer = 8M
write_buffer = 8M<\/p>

[mysqlhotcopy]
interactive","orderid":"0","title":"MySQL 5.5\u7248\u672c\u642d\u5efa\u5b9e\u4f8b\u7684\u90e8\u5206\u5e93\u7684\u4ece\u5e93(\u4e00)","smalltitle":"","mid":"0","fname":"\u6570\u636e\u5e93\u7f16\u7a0b","special_id":"0","bak_id":"0","info":"0","hits":"126","pages":"2","comments":"0","posttime":"2019-07-10 20:11:33","list":"1562760693","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"MySQL<\/A> 5.5<\/A> \u7248\u672c<\/A> \u642d\u5efa<\/A> \u5b9e\u4f8b<\/A> \u5206\u5e93<\/A> \u4ece\u5e93<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"47.106.78.186","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"MySQL 5.5\u7248\u672c\u642d\u5efa\u5b9e\u4f8b\u7684\u90e8\u5206\u5e93\u7684\u4ece\u5e93","lastview":"1712971764","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}