본문 바로가기
반응형

Slave6

Mysql Dual master – slave replication - 1단계 안녕하세요. 오늘은 간단하게 Mysql Dual master – slave replication 구성하는 방법을 단계별로 알아볼까 합니다. 차근 차근 따라 하시면 쉽게 구성 가능하실거에요. 사용 프로그램 Dual master replication 구성 가상머신 : VMware-player-full-16.2.1-18811642 OS : ubuntu-20.04.3-desktop-amd64 SQL Client : SQLyog-13.1.8-0.x64Community 복제 서버 구성 시작 PC에서 설치를 하기 때문에 가상 머신을 설치 해야합니다. Trail 버젼을 사용해서 학습 하시고 정식 이용은 정식 버젼을 이용하세요. 서버는 총 2대를 설치할예정이며 해당 서버는 Dual Master 구성을 위한 서버 구성입니.. 2023. 7. 23.
Mysql Dual master – slave replication - 준비사항 안녕하세요. 오늘은 간단하게 Mysql Dual master – slave replication 구성하는 방법을 단계별로 알아볼까 합니다. 차근 차근 따라 하시면 쉽게 구성 가능하실거에요. Replication 왜 필요하지? 데이터베이스에 데이터를 잘 저장하고 잘 불러오고 있는데 굳이 서버 하나를 늘려서 이중화를 시켜야 하는 이유가 무엇입니까? 라고 당연히 물어볼 수 있을 것 같습니다. Replication이 필요한 이유는 다음과 같습니다. 일종의 부하 분산이 가장 큰 이유죠.. 개인 프로젝트를 포함하여 모든 프로젝트가 그렇지만, DB에 접근해서 처리해야 하는 것들이 대부분일 겁니다. 읽기, 쓰기, 수정의 모든 연산이 하나의 DB에서 일어난다면 트래픽이 늘어남에 따라 자연스럽게 병목 현상 이 생길 수 밖.. 2023. 7. 23.
MySQL Error_code : 1756 slave_parallel_workers Yesterday I found a strange problem with a database online, and here I recorded the problem discovery and processing. R&D colleagues reported that the data in a database has not been updated since 19:44 (the online service from the library is not applicable, only offline query and statistical data use). But log in to the slave library to find that the master-slave synchronization is normal, the .. 2021. 5. 10.
[MariaDB] Master-Slave 설정 [MariaDB] Master-Slave 설정 1. 각 DB에 사용자 추가 (기본적으로 Master서버에만 설정하면되나 Auto-Failover시 누가 Master가 될지 모르기 때문에 동일하게 추가) drop user 'replication_user'@'%'; CREATE USER 'replication_user'@'%' IDENTIFIED BY '비밀번호'; GRANT REPLICATION SLAVE ON *.* TO 'replication_user'@'%'; flush privileges; SELECT host, user, password FROM mysql.user WHERE user='replication_user'; 2. Mater 서버 명령 -- LOCK 설정 FLUSH TABLES WITH.. 2020. 9. 18.
Mariadb DB 복제 설정 DB 복제 설정 [Master 서버] DB 설정 변경vi /etc/my.cnf.d/server.cnf [mysqld] server-id = 1 log_bin = /var/log/mysql/mariadb-bin log_bin_index = /var/log/mysql/mariadb-bin.index expire_logs_days = 10 max_binlog_size = 100M # /var/log/mysql 의 소유자는 mysql 이어야한다 설정 변경후 mysql 재시작service mysql restart mysql 커맨드라인 클라이언트 .. 2020. 4. 17.
Mysql 1236 Error 해결법 [ERROR] Error reading packet from server: Could not open log file (server_errno=1236) [ERROR] Slave I/O: Got fatal error 1236 from master when reading data from binary log: 'Could not open log file', Error_code: 1236 # Mysql Replication 실행시 위로 같은 에러가 발생 했다면 Master에서 Position정보를 읽어오지 못해서 발생하는 에러이다 # Master의 포지션값을 확인하여 적용해준다. STOP SLAVE; CHANGE MASTER TO MASTER_HOST='HOST', MASTER_USER='USER', MAS.. 2017. 7. 21.
반응형