Linux下mysql8.0用rpm安装

14 篇文章 0 订阅

安装环境red hat 7.0 64位

mysql 8.0

1.依赖包

mysql-community-client-8.0.15-1.el7.x86_64.rpm

mysql-community-common-8.0.15-1.el7.x86_64.rpm

mysql-community-devel-8.0.15-1.el7.x86_64.rpm

mysql-community-libs-8.0.15-1.el7.x86_64.rpm

mysql-community-server-8.0.15-1.el7.x86_64.rpm

2.安装顺序

mysql-community-common-8.0.15-1.el7.x86_64.rpm

mysql-community-libs-8.0.15-1.el7.x86_64.rpm

mysql-community-client-8.0.15-1.el7.x86_64.rpm

mysql-community-server-8.0.15-1.el7.x86_64.rpm

mysql-community-devel-8.0.15-1.el7.x86_64.rpm

3.安装报错问题

[root@localhost Downloads]# rpm -ivh mysql-community-server-8.0.15-1.el7.x86_64.rpm

warning: mysql-community-server-8.0.15-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

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

file /etc/my.cnf from install of mysql-community-server-8.0.15-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64

出现以上问题在命令后面加上 --force --nodeps

[root@localhost Downloads]# rpm -ivh mysql-community-server-8.0.15-1.el7.x86_64.rpm --force --nodeps

warning: mysql-community-server-8.0.15-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

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

Updating / installing...

1:mysql-community-server-8.0.15-1.e################################# [100%]

4.安装完成,启动mysql

[root@localhost Downloads]# systemctl status mysqld

● mysqld.service - MySQL Server

Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)

Active: inactive (dead)

Docs: man:mysqld(8)

http://dev.mysql.com/doc/refman/en/using-systemd.html

[root@localhost Downloads]# systemctl status mysqld

● mysqld.service - MySQL Server

Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)

Active: active (running) since Tue 2019-03-19 20:29:56 CST; 1min 22s ago

Docs: man:mysqld(8)

http://dev.mysql.com/doc/refman/en/using-systemd.html

Process: 4537 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)

Main PID: 4614 (mysqld)

Status: "SERVER_OPERATING"

CGroup: /system.slice/mysqld.service

└─4614 /usr/sbin/mysqld

Mar 19 20:29:38 localhost.localdomain systemd[1]: Starting MySQL Server...

Mar 19 20:29:56 localhost.localdomain systemd[1]: Started MySQL Server.

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值