主页 > 运维运营 > Mysql >
发布时间:2015-06-25 作者:Beck 阅读:313次

下载所需RPM软件包

http://dev.mysql.com/downloads/mysql/5.5.html#downloads找到所需的RPM包。
所需的RPM包如下

  • Server
  • Client
  • Shared libraries
  • Headers and libraries

以CentOS 5 32位为例,我们需要下载如下RPM包及依赖。

  1. wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-server-5.5.14-1.rhel5.i386.rpm/from/http://mysql.he.net/
  2. wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-client-5.5.14-1.rhel5.i386.rpm/from/http://mysql.he.net/
  3. wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-shared-5.5.14-1.rhel5.i386.rpm/from/http://mysql.he.net/
  4. wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-devel-5.5.14-1.rhel5.i386.rpm/from/http://mysql.he.net/
  5. wget ftp://ftp.sunet.se/pub/Linux/distributions/redhat/redhat-archive/redhat/linux/9/en/os/i386/RedHat/RPMS/libaio-0.3.93-4.i386.rpm

安装软件

  1. rpm -ivh libaio-0.3.93-4.i386.rpm
  2. rpm -ivh MySQL-server-5.5.14-1.rhel5.i386.rpm
  3. rpm -ivh MySQL-client-5.5.14-1.rhel5.i386.rpm
  4. rpm -ivh MySQL-shared-5.5.14-1.rhel5.i386.rpm
  5. rpm -ivh MySQL-devel-5.5.14-1.rhel5.i386.rpm

启动MySQL服务器并设置密码

  1. service mysql start
  2. mysql_secure_installation
 

转载请标明文章来源:《https://www.centos.bz/2011/07/centos5-rpm-install-mysql5-5-14/

 

 

历史上的今天:

关键字词: