2.MySQL 설치
# yum repolist enabled | grep mysql
mysql-connectors-community MySQL Connectors Community 21
mysql-tools-community MySQL Tools Community 35
mysql57-community MySQL 5.7 Community Server 82
2)repository에 접근 하여 설치 한다.
//repository 설치
yum -y install <http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm>
//설치
yum -y install mysql-community-server
yum -y install <http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm>
yum -y install mysql-community-server
rpm -ivh <http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm>


3)설치 완료 후에 MYSQL을 구동한다.
systemctl start mysqld

3.암호 정책 변경
echo 'validate_password_policy=LOW' >> /etc/my.cnf
echo 'default_password_lifetime=0' >> /etc/my.cnf

systemctl restart mysqld

1)임시 비밀 번호 얻어 오기
gedit /var/log/mysqld.log //비밀번호 확인

2)암호 변경 하기

mysql> set password=password('1234');
flush privileges;

5**. CharacterSet UTF8 설정하기**
vi /etc/my.cnf
[client]default-character-set = utf8
[mysql]default-character-set=utf8[mysqldump]default-character-set=utf8[mysqld]datadir=/var/lib/
mysqlsocket=/var/lib/mysql/mysql.sockcharacter-set-server=utf8
collation-server=utf8_general_ciinit_connect=SET collation_connection =
utf8_general_ciinit_connect=SET NAMES utf8character-set-client-handshake =
FALSEskip-character-set-client-handshakesymbolic-links=0log-error=/var/log/mysqld.logpid-file=
/var/run/mysqld/mysqld.pid
systemctl restart mysqldmysql -u root -pstatu
