Home > Database > Mysql Tutorial > yum安装mysql

yum安装mysql

WBOY
Release: 2016-06-07 15:02:23
Original
1442 people have browsed it

1、首先到mysql官网上去找; 网址:http://dev.mysql.com/downloads/ 发现yum mysql repot选项: 2、在上面网址中找到mysql yum repo地址: http://dev.mysql.com/downloads/repo/yum/ 3、发现需要根据具体系统版本进行查找yum repo 4、找到快速指导: 5、通



1、首先到mysql官网上去找;

网址:http://dev.mysql.com/downloads/

发现yum mysql repot选项:


yum安装mysql

2、在上面网址中找到mysql  yum repo地址:

http://dev.mysql.com/downloads/repo/yum/




3、发现需要根据具体系统版本进行查找yum repo


yum安装mysql


4、找到快速指导:

yum安装mysql


5、通过阅读指导发现,首先需要下载与系统匹配的repo:

yum安装mysql


6、查阅系统版本是:


cat /etc/redhat-release

发现是 6.2


使用wget下载 yum repo rpm:

之前应该使用右键保存需要下载版本的链接:

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


7、使用

rpm -Uvh mysql-community-release-el6-5.noarch.rpm


8、安装

sudo yum install mysql-community-server


9、启动服务:

sudo service mysqld start:  注意是mysqld


查看状态:  sudo service  mysqld status


10、关闭服务:

sudo  service  mysqld stop:



注意;这样安装的mysql是无密码的,可以直接登陆,需要修改密码

3、发现需要根据具体系统版本进行查找yum repo

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template