본문 바로가기

반응형

리플리케이션

[리눅스] mysql 5.7 replication 설정 mysql 5.7 replication 설정 DB IP 비고 master 192.168.0.100 slave 192.168.0.101 slave 192.168.0.102 mysql my.cnf 편집 [마스터] server_id = 1 log-bin = mysql-bin.log vim /etc/my.cnf [client] default-character-set = utf8 [mysqld] server_id = 1 log-bin = mysql-bin.log binlog_cache_size = 2M max_binlog_size = 512M expire_logs_days = 7 log-bin-trust-function-creators = 1 #binlog_do_db = wwwdb datadir=/var/lib/.. 더보기
MySQL 리플리케이션(replication)을 설정하는 방법 MySQL 리플리케이션(replication)을 설정하는 방법 테스트 환경 서버명 서버 아이피 역할 server-id 비고 node1 192.168.20.211 마스터 1 리플리케이션 계정 정보: repluser / replpassword node2 192.168.20.212 슬레이브 2 node3 192.168.20.213 슬레이브 3 운영체제 릴리즈 정보 $ lsb_release -d Description:Ubuntu 22.04.2 LTS MySQL 버전 정보 $ /usr/local/mysql/bin/mysqld -V /usr/local/mysql/bin/mysqld Ver 8.0.33 for Linux on x86_64 (MySQL Community Server - GPL) 1. 마스터 서버 설정 .. 더보기
MySQL 클라이언트 실행 시 libtinfo.so.5 라이브러리 오류 MySQL 클라이언트 실행 시 libtinfo.so.5 라이브러리 오류 테스트 환경 $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy MySQL 클라이언트 실행 $ ./bin/mysql -uroot -p ./bin/mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory 이 오류 메시지는 libtinfo.so.5 라이브러리 파일을 찾을 수 없을 때 발생합니다. 이 라이브러.. 더보기

728x90
반응형