亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4615 | 回復(fù): 2
打印 上一主題 下一主題

[其他] master端 Binlog Dump線程問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2012-08-15 12:51 |只看該作者 |倒序瀏覽
本帖最后由 淺愛拉拉 于 2012-08-16 13:34 編輯

實現(xiàn)兩個局域網(wǎng)的服務(wù)器mysql數(shù)據(jù)庫同步
mysql3306端口對外映射成XXXX端口
配置master過程:
創(chuàng)建用戶admin
create user 'admin'@'%' identified by 'admin';
grant super,replication slave,file,reload on *.* to 'admin'@'%' identified by 'admin';
flush privileges;
/etc下沒有my.cnf文件,于是從安裝目錄下copy文件mysql-large.cnf到/etc目錄下,并修改成my.cnf
[mysqld]
port= 3306
socket          = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
thread_concurrency = 8
server-id = 1
log-bin=mysql-bin
log-bin-index=mysql-bin.index
binlog_format=mixed

重啟服務(wù)。
show master status 顯示沒有問題
show processlist   沒有 Binlog Dump線程
這是為什么呢
錯誤日志:
120816 11:06:28 [ERROR] Slave I/O: error connecting to master 'admin@211.6.106.200:3307' - retry-time: 60  retries: 86400, Error_code: 2003
120816 11:06:28 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000002' at position 6207, relay log './localhost-relay-bin.000001' p                                                                                               osition: 4
120816 11:16:26 [Note] /usr/sbin/mysqld: Normal shutdown
120816 11:16:26 [Note] Slave I/O thread killed while connecting to master
120816 11:16:26 [Note] Slave I/O thread exiting, read up to log 'mysql-bin.000002', position 6207
120816 11:16:26 [Note] Event Scheduler: Purging the queue. 0 events
120816 11:16:26 [Note] Error reading relay log event: slave SQL thread was kille d

論壇徽章:
0
2 [報告]
發(fā)表于 2012-08-20 17:10 |只看該作者
Slave I/O: error connecting to master 'admin@211.6.106.200:3307'
---2個局域網(wǎng)?這明明是個外網(wǎng)ip,你跨互聯(lián)網(wǎng)做mysql主從?防火墻策略都做好了嗎?在備上能telnet到主的3307口嗎?網(wǎng)絡(luò)都沒搞好,mysql怎么同步?

論壇徽章:
4
戌狗
日期:2014-10-12 21:48:202015年辭舊歲徽章
日期:2015-03-03 16:54:15IT運維版塊每日發(fā)帖之星
日期:2015-06-09 22:20:002016猴年福章徽章
日期:2016-02-18 15:30:34
3 [報告]
發(fā)表于 2012-08-26 09:51 |只看該作者
" in log 'mysql-bin.000002' at position 6207, relay log './localhost-relay-bin.000001' p                                                                                               osition: 4"
看看 master mysql-bin.000002 6207是個什么操作。
有可能slave庫已經(jīng)執(zhí)行了 該項操作,但是 復(fù)制進程還要進行該項操作,記錄就重復(fù)了。
解決方法:1,跳過該項操作(例如 mysqlbinlog --start-pos=98 --stop-pos=328 mysql-bin.000188 )2,手動恢復(fù)到最后一次全量備份,然后在進行日志同步
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP