728x90
반응형
# Master
mysql > show master status;
ex )
+------------------+----------+--------------+------------------+-------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+------------------+----------+--------------+------------------+-------------------+
| mysql-bin.000010 | 6696003 | | | |
+------------------+----------+--------------+------------------+-------------------+
1 row in set (0.00 sec)
# Slave
mysql > stop slave;
mysql > change master to master_host = 'ip', master_port = 3306, master_user = 'user_id', master_password = 'user_password', master_log_pos =6696003, master_log_file = 'mysql-bin.000010';
mysql > start slave;
mysql > show slave status \G;
# 연결이 안 될시에 유저 권한 확인
select user,host,authentication_string from mysql.user order by user;
728x90
반응형
'Database > MySQL' 카테고리의 다른 글
[MySQL] binlog to SQL(텍스트) 변환 (0) | 2022.05.09 |
---|---|
MariaDB sharding using docker (0) | 2020.07.14 |
MySQL DB 명세서 쿼리 작성 (0) | 2019.10.22 |
MySQL innodb 버퍼 할당 에러 (0) | 2019.10.22 |
MySQL 프로시저 디버그 (0) | 2019.10.22 |