https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html
이 링크 하나면 yum 완벽합니다.
아래의 repo 파일 만든 후 yum clean all , yum repolist 확인 필수!
저는 CentOS 7.6 Lastest 버전이므로 6--> 7로 변경 했습니다
root@DB2:/etc/yum.repos.d# vi mysql.repo
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
#yum clean all
#yum repolist
#yum install mysql-community* ( mysql-community-server 만 설치해도 되긴함 )
혹시 gpgkey 에러가 나서 server가 설치 안 된다면 yum install --nogpgcheck 옵션을 넣어주면 됩니다.
Dependencies Resolved
==========================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================
Installing:
mysql-community-libs x86_64 5.7.26-1.el7 mysql57-community 2.2 M
replacing mariadb-libs.x86_64 1:5.5.60-1.el7_5
mysql-community-libs-compat x86_64 5.7.26-1.el7 mysql57-community 2.0 M
replacing mariadb-libs.x86_64 1:5.5.60-1.el7_5
mysql-community-server x86_64 5.7.26-1.el7 mysql57-community 166 M
Installing for dependencies:
mysql-community-client x86_64 5.7.26-1.el7 mysql57-community 24 M
mysql-community-common x86_64 5.7.26-1.el7 mysql57-community 274 k
Transaction Summary
==========================================================================================================================
Install 3 Packages (+2 Dependent packages)
Total download size: 194 M
'Linux ( Cent OS ) > MySQL' 카테고리의 다른 글
[실무 예시] MySQL Table 비우기 (0) | 2019.05.13 |
---|---|
0. Log Parameters 간단 요약( Mysql 5.1 ) - 작성중 (0) | 2019.05.02 |
7. Binary Log 삭제 (0) | 2019.05.02 |