wsaer 发表于 2018-10-5 13:04:47

mysql主从复制及维护--单主、双主

MariaDB [(none)]> show master status;  +------------------+----------+--------------+------------------+
  | File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |
  +------------------+----------+--------------+------------------+
  | mysql-bin.000003 |      491 |            |                  |
  +------------------+----------+--------------+------------------+
  1 row in set (0.00 sec)
  MariaDB [(none)]> show binlog events in 'mysql-bin.000003';
  +------------------+-----+-------------+-----------+-------------+--------------------------------------------------------------------------------------------------+
  | Log_name         | Pos | Event_type| Server_id | End_log_pos | Info                                                                                             |
  +------------------+-----+-------------+-----------+-------------+--------------------------------------------------------------------------------------------------+
  | mysql-bin.000003 |   4 | Format_desc |         1 |         245 | Server ver: 5.5.56-MariaDB, Binlog ver: 4                                                      |

  | mysql-bin.000003 | 245 | Query       |         1 |         416 | grant replication slave,replication client on *.* to lxk@'192.168.200.%'>  | mysql-bin.000003 | 416 | Query       |         1 |         491 | flush privileges                                                                                 |
  +------------------+-----+-------------+-----------+-------------+--------------------------------------------------------------------------------------------------+
  3 rows in set (0.00 sec)

页: [1]
查看完整版本: mysql主从复制及维护--单主、双主