계정 및 권한 관리 기본적으로 설치 되는 데이터 베이스인 mysql 데이터베이스에 유저 및 권한 정보가 저장되며, mysql 데이터베이스 user라는 테이블에 사용자 정보가 저장되며, db라는 테이블에 권한 정보가 저장된다. 최초 설치 시에는 비밀번호가 설정되지 않는다. 관리자는 비밀번호를 재설정 해야한다. 설치 시, mysql_install_db 스크립트에는 권한 테이블을 설정 하는 것이다. mysql> use mysql Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> selec..
Directory 확인 mysql> SHOW VARIABLES WHERE Variable_Name LIKE "%dir"; +-----------------------------+----------------------------------+ | Variable_name | Value | +-----------------------------+----------------------------------+ | basedir | /usr/local/mysql/ | | character_sets_dir | /usr/local/mysql/share/charsets/ | | datadir | /data/mysql/ | | innodb_data_home_dir | | | innodb_doublewrite_dir |..
1. 바이너리 다운로드*Linux 상세 버전 확인# grep . /etc/*-release* glib 버전 확인getconf -a | grep libchttps://downloads.mysql.com/archives/community/ MySQL :: Download MySQL Community Server (Archived Versions)Please note that these are old versions. New releases will have recent bug fixes and features! To download the latest release of MySQL Community Server, please visit MySQL Downloads. MySQL open source softw..
1. mysql 유저생성 groupadd mysql useradd -M -g mysql mysql cat /etc/passwd 2. 의존성 설치 - MySQL을 컴파일 하기 위한 라이프러리 설치 yum -y install ncurses-devel yum -y install perl yum -y install perl-Data-Dumper yum -y install cmake yum -y install wget yum -y install gcc-c++ yum install -y cmake bison gcc gcc-c++ ncurses-devel yum install devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-binutils 3. MySQL 바이너리 준비..
Tibero Performance Repository Tibero DBMS는 DBA가 성능 문제를 진단하는데 도움을 주기 위해 다양한 종류의 통계를 제공하고 있다. Tibero Performance Repository(이하 TPR)은 이러한 통계 정보를 주기적으로 자동 수집하여 DBA가 이를 위한 작업을 따로 할 필요가 없어졌고 수집한 통계 자료에 대한 자체적인 분석 리포트 출력 기능을 제공하여 시스템 부하 분석에 도움을 줄 수 있는 기능이다. 1. 관련 파라메터 설정 (TIP file) TIBERO_PERFORMANCE_REPOSITORY 'Y'로 설정하면 스냅샷 저장 기능 활성화한다. (기본값: Y) TPR_SNAPSHOT_SAMPLING_INTERVAL 스냅샷을 추출하는 주기를 설정한다. (기본값:..
1. TM Lock Table을 보호하는 락 경합 발생시 enq:TM - contention 대기 2. TM Lock MODE 구분 모드 Ex LEVEL 2 RS(ROW Shared Table Locks), SS(Subshare Table Locks) LOCK TABLE EMP IN ROW SHARE MODE; LEVEL 3 RX(ROW Exclusive Table Locks), SX(Subexclusive Table Locks) LOCK TABLE EMP IN ROW EXCLUSIVE MODE; LEVEL 4 S(Share Table Locks), SS(Subshare Table Locks) LOCK TABLE EMP IN SHARE MODE; LEVEL 5 SRS(Share Row Exclusive ..