咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

如何在cenots6.X 下yum安装mysql

2017-09-07 07:53:28 14048次

1.下载地址http://www.landui.com/downloads/mysql/

选择Red Hat Enterprise后下载对应操作系统版本的RPM Package

例如针对6.5 x64版本 http://www.landui.com/mysql-community-release-el6-5.noarch.rpm

wget http://www.landui.com/mysql-community-release-el6-5.noarch.rpm

rpm -ivh mysql-community-release-el6-5.noarch.rpm   安装yum源

2.安装mysql

yum install mysql mysql-server mysql-devel

chkconfig mysqld on       #设置自动启动

/etc/init.d/mysqld start  #启动mysql服务

/usr/bin/mysql_secure_installation #首次安装后设置密码


首页
最新活动
个人中心