nics 发表于 2018-10-11 06:26:27

Mysql 主从配置

mysql> GRANT REPLICATION SLAVE ON *.* to 'mysync'@'192.168.121.129' identified by '123456';  
mysql> show master status;
  
+------------------+----------+--------------+------------------+
  
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |
  
+------------------+----------+--------------+------------------+
  
| mysql-bin.000001 |      264 |            |                  |
  
+------------------+----------+--------------+------------------+
  
1 row in set (0.00 sec)


页: [1]
查看完整版本: Mysql 主从配置