CentOS 7.2 가상 컴퓨터 에 MySQL 5.6.32 를 설치 하 는 튜 토리 얼

1746 단어 centos7.2mysql5.6.32
1,MySQL 5.6.32 64 비트 설치 패키지 다운로드
홈 페이지http://dev.mysql.com/downloads/mysql/5.6.html#에서 빠 른 천둥 으로 MySQL 5.6.32 64 비트 설치 패 키 지 를 다운로드 합 니 다.

http://pan.baidu.com/s/1pLCiAmf
2.다운로드 파일 을 SecureFX 를 통 해/usr/local/src/디 렉 터 리 에 전달 합 니 다(가상 호스트 CentOS 7.2 의 IP 는 192.168.1.11)

3.압축 해제 파일.
cd /usr/local/src/
[root@localhost src]# tar xvf MySQL-5.6.32-1.linux_glibc2.5.x86_64.rpm-bundle.tar
MySQL-shared-compat-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-client-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-shared-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-server-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-devel-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-test-5.6.32-1.linux_glibc2.5.x86_64.rpm
MySQL-embedded-5.6.32-1.linux_glibc2.5.x86_64.rpm
4.시스템 에 MySQL 이 설치 되 어 있 는 지 확인 하고 명령 을 사용 합 니 다.
[root@localhost src]# rpm -qa | grep mysql
mysql-connector-odbc-5.2.5-6.el7.x86_64
설 치 된 MySQL 을 마 운 트 해제 합 니 다.mysql 명령 은 다음 과 같 습 니 다.
[root@localhost src]# rpm -e --nodeps mysql-connector-odbc-5.2.5-6.el7.x86_64
/var/lib/mysql 폴 더 의 모든 파일 을 깨끗이 삭제 합 니 다.
5.다음 명령 을 사용 하여 Server 와 Client 를 설치 합 니 다.
[root@localhost src]# rpm -ivh MySQL-server-5.6.32-1.linux_glibc2.5.x86_64.rpm
[root@localhost src]# rpm -ivh MySQL-client-5.6.32-1.linux_glibc2.5.x86_64.rpm
6.현재 my sql 상 태 를 다음 명령 으로 확인 합 니 다:

좋은 웹페이지 즐겨찾기