当前位置:网站首页>[LINUX]CentOS 7 安装MYSQL时报错“No package mysql-server available“No package zabbix-server-mysql availabl
[LINUX]CentOS 7 安装MYSQL时报错“No package mysql-server available“No package zabbix-server-mysql availabl
2022-07-03 17:49:00 【Leon-zy】
情景:
在CENTOS 7.5、7.7、7.9环境下单独安装MSYQL数据库,或者是安装zabbix中需要安装 zabbix-server-mysql时,报错。
内容为:“No package mysql-server available“ “No package zabbix-server-mysql available“
原因:
CentOS7带有MariaDB而不是MySQL,MariaDB和MySQL一样也是开元的数据库。
解决方案:
可以使用yum -y install mariadb-server mariadb命令安装,如果这条命令还是不行就使用下面的方法:
首先必须添加mysql社区repo通过输入命令(版本自定,内网服务器可以自行下载rpm包拷贝进服务器使用rpm -ivh …rpm安装先):
sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
最后使用像安装MySQL的常规方法一样安装mysql:
yum install mysql mysql-server mysql-libs mysql-server
边栏推荐
- How to read the source code [debug and observe the source code]
- c# . Net tool ecosystem
- [combinatorics] generating function (summation property)
- Stm32h7 Hal library SPI DMA transmission has been in busy solution
- 1147_ Makefile learning_ Target files and dependent files in makefile
- [教程]在 CoreOS 上构建你的第一个应用
- Graduation summary
- Qt调节Win屏幕亮度和声音大小
- Select 3 fcpx plug-ins. Come and see if you like them
- [combinatorics] generating function (linear property | product property)
猜你喜欢
Automata and automatic line of non-standard design
List的stream中Long对象与long判等问题记录
Cloud primordial weekly | CNCF released the 2021 cloud primordial development status report, which was released on istio 1.13
MySQL has been stopped in the configuration interface during installation
TensorBoard快速入门(Pytorch使用TensorBoard)
Talk about the design and implementation logic of payment process
1164 Good in C
互联网医院HIS管理平台源码,在线问诊,预约挂号 智慧医院小程序源码
As soon as we enter "remote", we will never regret, and several people will be happy and several people will be sad| Community essay solicitation
Play with fancy special effects. This AE super kit is for you
随机推荐
1164 Good in C
MySQL grouping query
Notes on problems -- watching videos on edge will make the screen green
Keepalived 设置不抢占资源
[combinatorics] generating function (linear property | product property)
问题随记 —— 在 edge 上看视频会绿屏
1164 Good in C
[Yu Yue education] family education SPOC class 2 reference materials of Shanghai Normal University
Kubernetes resource object introduction and common commands (III)
[combinatorics] recursive equation (four cases where the non-homogeneous part of a linear non-homogeneous recursive equation with constant coefficients is the general solution of the combination of po
Enterprise custom form engine solution (XI) -- form rule engine 1
MinGW compile boost library
[set theory] order relation: summary (partial order relation | partial order set | comparable | strictly less than | covering | hasto | total order relation | quasi order relation | partial order rela
[combinatorics] recursive equation (special solution example 1 Hannover tower complete solution process | special solution example 2 special solution processing when the characteristic root is 1)
Leetcode 538 converts binary search tree into cumulative tree -- recursive method and iterative method
Deops入门
Servlet specification Part II
Getting started with deops
Micro service component sentinel console call
(8) HS corner detection