계정 및 권한 관리 기본적으로 설치 되는 데이터 베이스인 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 바이너리 준비..