我無法將活動服務器中的數據庫複製到本地服務器(可從外部訪問)。當我嘗試複製數據庫時出現相同的ID錯誤
我得到了主服務器
Fatal error: The slave I/O thread stops because m
aster and slave have equal MySQL server ids; these ids must be different for rep
lication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it).
這個錯誤當我鍵入SHOW SLAVE STATUS \G
在phpMyAdmin的我得到這個錯誤主服務器:
Slave IO Thread not running!
我的主人my.cnf文件
[mysqld]
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
server-id=1392211409
log-bin=mysql-bin
log-error=mysql-bin.err
binlog_do_db=vapes4you
binlog_format=ROW
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
我的奴隸文件
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
server-id=1392211002
master-host=********
master-user=vapesbackup
master-password=********
master-port=3306
replicate-do-db=dbname
master-connect-retry=60
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
任何人都可以幫助我嗎?感謝您的閱讀
您是否在更改服務器ID後停止並重新啓動服務器? –
感謝您的幫助。是的,我做到了。 –