Cent OS 7, mysql 8.0 재설치 > server

본문 바로가기
사이트 내 전체검색

server

Cent OS 7, mysql 8.0 재설치

페이지 정보

작성자 서방님 댓글 0건 조회 218회 작성일 19-03-25 16:37

본문

01. 기존 설치된 패키지 제거

#yum list installed mysql*


#yum remove -y mysql-community-client.x86_64

#yum remove -y mysql-community-common.x86_64

#yum remove -y mysql-community-libs.x86_64

#yum remove -y mysql-community-libs-compat.x86_64

#yum remove -y mysql-community-server.x86_64

#yum remove -y mysql80-community-release.noarch



○ MySQL 8.x 설치를 위한 준비 작업


]# rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm


https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm /var/tmp/rpm-tmp.5kLLuY: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY ######################### [100%]


Updating / installing...  1:mysql80-community-release-el7-1  ####################### [100%]




]# yum repolist all | grep mysql | grep enabled


mysql-connectors-community/x86_64  MySQL Connectors Community    enabled:     74


mysql-tools-community/x86_64       MySQL Tools Community         enabled:     74


mysql80-community/x86_64           MySQL 8.0 Community Server    enabled:     49



○ MySQL 설치하기


]# yum -y install mysql-community-server


Loaded plugins: fastestmirror



○ mysql 데몬 실행


]# systemctl start mysqld




○ 리부팅 했을 때 mysql 데몬 자동 실행


]# systemctl enable mysqld



○ mysql 임시 비밀번호 알아내기


]# cat /var/log/mysqld.log | grep -i 'temporary password'


2019-03-25T11:43:05.368765Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: /;ecbF)b9feS


mysql8 은 초기에 임시 번호가 부여된다.




○ mysql 기본 설정. 비밀번호 변경 포함


]# mysql_secure_installation


Securing the MySQL server deployment.


Enter password for user root: 임시비번 /;ecbF)b9feS




New password: 새 비밀번호 (비밀번호는 대문자+소문자+특수문자+숫자가 포함 되어야 한다)


Re-enter new password: 비밀번호 확인


Estimated strength of the password: 100


Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y 변경 된 비밀번호를 계속 사용하시겠습니까?


Remove anonymous users? (Press y|Y for Yes, any other key for No) : y 익명사용자를 삭제 할까요? 


Success.


Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y 원격 root 로그인 차단?


Success.


Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y 테스트 데이터베이스 삭제?


 - Dropping test database...


Success.


Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y 관리자 권한 테이블 다시 로드할까요?


Success.



이제 MySQL 설치와 설정이 끝났다.


댓글목록

등록된 댓글이 없습니다.

Total 356건 2 페이지
게시물 검색

회원로그인

접속자집계

오늘
88
어제
84
최대
1,347
전체
154,459
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.