목록Linux/MySQL (4)
+1-1+1-1+1-1+1-1...
구성 내용 Master 서버 - 읽기/쓰기 Slave 서버 - 읽기, Master DB 복제 구성 * 읽기/쓰기 분산없이 Slave 서버를 단순 복제 구성 할 경우, my.cnf 지정 옵션이 다름, 단순 복제의 경우 아래 링크 참조 gangnam-americano.tistory.com/12 [MySQL] MySQL Replication 구성하기 [MySQL] MySQL Replication 구성하기 Replication : 복제 DB 이중화 방식 중 하나로 MySQL에서는 Replication(복제)이라는 기능을 제공하여 Master(#1)와 Slave(#2)간의 데이터 복제를 가능하게 한다. MySQL은 b.. gangnam-americano.tistory.com 1. Master 서버 설정 1) my..
MariaDB 서버 : 192.168.60.15 Clinet IP : 192.168.60.5 1. MariaDB 접속 [root@localhost mysql]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 22 Server version: 10.4.17-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input..
1. Yum Repository 등록 [root@localhost yum.repos.d]# vi /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.4/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 [root@localhost yum.repos.d]# yum repolist Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Manage..
시나리오 Test DB를 생성하여, 접근계정에 권한을 부여하고, 특정 서버(WAS 서버)에 DB Connection 허용하기 접근계정 : TestUser 생성 DB : TestDB WAS IP : 10.10.11.3 1. 서버 접속 2. Root 권한 할당 > su – 3. MySQL 접속 mysql -u root –p 4. 계정 생성 - 접근할 클라이언트 IP 별로 계정 생성 # 웹/WAS IP MariaDB [mysql]> create user TestUser@10.10.11.3 identified by 'password'; Query OK, 0 rows affected (0.003 sec) 5. 계정 확인 use mysql select user, host from user where user = '..