基于centos的mysql5.6的yum源安装方式

采用yum安装的方式非常简单

首先在官网上面找到对应的链接,然后使用wget命令进行下载到本地

wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm

查看一下能够安装的MySQL

yum list|grep mysql

(会出现很多,我们只需要安装客户端和服务器端就可以了)

我在安装的过程中出现了yum不能正常使用的情况

如下:

yum list

Loaded plugins: fastestmirror, security

Existing lock /var/run/yum.pid: another copy is running as pid 22081.

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  38 M RSS (552 MB VSZ)

    Started: Fri Oct 16 19:10:20 2015 - 02:31 ago

    State  : Traced/Stopped, pid: 22081

Another app is currently holding the yum lock; waiting for it to exit...

 

我的处理方式是使用rm命令

rm -rf  /var/run/yum.pid

直接把yum.pid 删除就能够正常使用了

 

下面直接使用yum安装客户端

yum install mysql-community-client.i686

安装服务器端

yum install mysql-community-server.x86_64

安装完成之后重启一下就可以了

Service  mysqld  restart



你可能感兴趣的:(基于centos的mysql5.6的yum源安装方式)