在mysql數據庫上運行pt-table-sync
時,繼續獲取拒絕訪問錯誤,該數據庫保存pt-table-checksum
發現複製表中的差異的表。Percona tool pt-table-sync
[[email protected]:0 ~]$ pt-table-sync --execute --verbose master.com slave.com -uroot -ppasswd
DBI connect(';host=master.com;mysql_read_default_group=client','root',...)
failed: Access denied for user 'root'@'master.com' (using password: YES) at /usr/bin/pt-table-sync line 2163
從主服務器運行它。
任何想法我做錯了什麼?
我很感謝你迴應udog,但我只希望它那麼簡單。我嘗試了幾次pwd,雖然它可以與mysql和其他工具(如pt-table-checksum)一起使用。這是另一個問題。 –