--Linux下基于RPM BUNDLE包安装MySQL
下载地址:http://dev.mysql.com/downloads/mysql/
[root@ocm2 ~]# ls mysql-5.7.17-1.el5.i686.rpm-bundle.tar
mysql-5.7.17-1.el5.i686.rpm-bundle.tar
[root@ocm2 ~]# mkdir -pv /usr/src/mysql
mkdir: created directory '/usr/src/mysql'
You have new mail in /var/spool/mail/root
[root@ocm2 ~]# tar xvf mysql-5.7.17-1.el5.i686.rpm-bundle.tar -C /usr/src/mysql/
mysql-community-libs-5.7.17-1.el5.i686.rpm
mysql-community-server-5.7.17-1.el5.i686.rpm
mysql-community-embedded-5.7.17-1.el5.i686.rpm
mysql-5.7.17-1.el5.i686.rpm
mysql-community-common-5.7.17-1.el5.i686.rpm
mysql-community-test-5.7.17-1.el5.i686.rpm
mysql-community-devel-5.7.17-1.el5.i686.rpm
mysql-community-embedded-devel-5.7.17-1.el5.i686.rpm
mysql-community-client-5.7.17-1.el5.i686.rpm
mysql-community-libs-compat-5.7.17-1.el5.i686.rpm
[root@ocm2 ~]# cd /usr/src/mysql/
[root@ocm2 mysql]# ls
mysql-5.7.17-1.el5.i686.rpm
mysql-community-client-5.7.17-1.el5.i686.rpm --客户端
mysql-community-common-5.7.17-1.el5.i686.rpm
mysql-community-devel-5.7.17-1.el5.i686.rpm --mysql库文件头文件
mysql-community-embedded-5.7.17-1.el5.i686.rpm
mysql-community-embedded-devel-5.7.17-1.el5.i686.rpm
mysql-community-libs-5.7.17-1.el5.i686.rpm
mysql-community-libs-compat-5.7.17-1.el5.i686.rpm
mysql-community-server-5.7.17-1.el5.i686.rpm --服务器
mysql-community-test-5.7.17-1.el5.i686.rpm
--安装方式可以采用rpm或者yum install,rpm方式缺少的关联包需要手动安装
--几个包都存在相互依赖的关系,所用使用--nodeps参数忽略依赖关系
[root@ocm2 mysql]# rpm -ivh mysql-community-server-5.7.17-1.el5.i686.rpm --nodeps
warning: mysql-community-server-5.7.17-1.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 5