본문 바로가기

728x90

mysqld

MySQL 클라이언트를 설치하는 방법 MySQL 클라이언트를 설치하는 방법 Ubuntu 또는 Debian sudo apt-get update sudo apt-get install mysql-client CentOS 또는 Red Hat sudo yum install mysql MySQL 5.7 Community Edition을 설치하는 방법 Ubuntu 운영 체제에서 MySQL 5.7 Community Edition 설치 MySQL APT 저장소 추가하기 wget https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb sudo dpkg -i mysql-apt-config_0.8.22-1_all.deb 저장소 업데이트 sudo apt-get update MySQL 5.7 클라이언트 설치 sud.. 더보기
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. 마스터 서버 설정 .. 더보기
CentOS 7에서 MySQL 5.7를 바이너리 아카이브 파일로 설치하는 방법 CentOS 7에서 MySQL 5.7를 바이너리 아카이브 파일로 설치하는 방법 테스트 환경 운영체제 버전 정보 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ getconf LONG_BIT 64 DB : mysql 5.7.15 MySQL 계정 생성 groupadd -g 27 mysql useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -g 27 -u 27 mysql MySQL Community Server 다운로드 받기 https://downloads.mysql.com/archives/community/ 작업 디렉토리로 이동 cd /usr/local/src 아카이브 파일 다운.. 더보기
CentOS 7에 MySQL 5.7을 바이너리 설치하는 방법(binary) CentOS 7에 MySQL 5.7을 바이너리 설치하는 방법(binary) 테스트 환경 - DB : mysql 5.7.15 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ getconf LONG_BIT 64 mysql 계정 생성 groupadd -g 27 mysql useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -g 27 -u 27 mysql MySQL Community Server 다운로드 받기 mysql-boost-5.7.15.tar.gz 압축 풀기 tar xfz mysql-boost-5.7.15.tar.gz cd mysql-5.7.15/ 컴파일 설치 cmake \ -.. 더보기

728x90