centeros安装mysql_CenterOS7 在线yum安装MySQL

[root@OpenStack-node1 ~]# rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

Retrieving http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

Preparing... ################################# [100%]

Updating / installing...

1:mysql-community-release-el7-5 ################################# [100%]

查看当前可用的mysql安装资源:

[root@openstack-node1 ~]# yum repolist enabled | grep "mysql.*-community.*"

!mysql-connectors-community/x86_64 MySQL Connectors Community 2

!mysql-tools-community/x86_64 MySQL Tools Community 3

!mysql56-community/x86_64 MySQL 5.6 Community Server 22

[root@openstack-node1 ~]# yum -y install mysql-community-server

Loaded plugins: fastestmirror,langpacks

base | 3.6 kB 00:00

epel/x86_64/metalink | 4.9 kB 00:00

extras | 3.4 kB 00:00

mysql-connectors-community | 2.5 kB 00:00

mysql-tools-community | 2.5 kB 00:00

mysql56-community | 2.5 kB 00:00

updates | 3.4 kB 00:00

updates/7/x86_64/primary_db | 4.9 MB 00:05

……………………

Installing : mysql-community-common-5.6.30-2.el7.x86_64 1/4

Installing : mysql-community-libs-5.6.30-2.el7.x86_64 2/4

Installing : mysql-community-client-5.6.30-2.el7.x86_64 3/4

Installing : mysql-community-server-5.6.30-2.el7.x86_64 4/4

Verifying : mysql-community-client-5.6.30-2.el7.x86_64 1/4

Verifying : mysql-community-common-5.6.30-2.el7.x86_64 2/4

Verifying : mysql-community-libs-5.6.30-2.el7.x86_64 3/4

Verifying : mysql-community-server-5.6.30-2.el7.x86_64 4/4

Installed:

mysql-community-server.x86_64 0:5.6.30-2.el7

Dependency Installed:

mysql-community-client.x86_64 0:5.6.30-2.el7 mysql-community-common.x86_64 0:5.6.30-2.el7 mysql-community-libs.x86_64 0:5.6.30-2.el7

Complete!

#######安装成功后,将其加入开机启动[root@typecodes ~]# systemctl enable mysqld

启动mysql服务进程[root@typecodes ~]# systemctlstartmysqld

配置(设置密码等)[root@typecodes ~]# mysql_secure_installation

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值