Think before you speak, read before you think.
—
by
防止在 slave 上执行sql 误操作最主要的还是知道自己执行的机器是否正确。
要知道自己在哪台机器上
select @@hostname
查看 master status
show master status\G
查看 slave status (主库不应看到信息)
show slave status
查看 slave 有哪些 (从库不应看到信息)
show slave hosts\G
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Δ
Leave a Reply