mysql> GRANT REPLICATION SLAVE ON *.* TO 'slave001'@'192.168.0.99' IDENTIFIED BY '123456'; Query OK, 0 rows affected (0.13 sec)
[mysqld] log-bin = /home/mysql/log/mysql-bin.log server-id=1
mysql> show master statusG; *************************** 1. row *************************** File: mysql-bin.000003 Position: 243 Binlog_Do_DB: Binlog_Ignore_DB: 1 row in set (0.00 sec)
mysql> flush tables with read lock; Query OK, 0 rows affected (0.19 sec)
mysqldump -h127.0.0.1 -p3306 -uroot -p test > /home/chenyz/test.sql
mysql> unlock tables; Query OK, 0 rows affected (0.28 sec)
[mysqld] server-id=2 log_bin = /var/log/mysql/mysql-bin.log master-host =192.168.1.100 master-user=test master-pass=123456 master-port =3306 master-connect-retry=60 replicate-do-db =test
mysql> start slave;
mysql> SHOW SLAVE STATUSG *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: localhost Master_User: root Master_Port: 3306 Connect_Retry: 3 Master_Log_File: mysql-bin.003 Read_Master_Log_Pos: 79 Relay_Log_File: gbichot-relay-bin.003 Relay_Log_Pos: 548 Relay_Master_Log_File: mysql-bin .003 Slave_IO_Running: Yes Slave_SQL_Running: Yes
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有