当前位置:网站首页>[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
边栏推荐
- [vscode] convert tabs to spaces
- MySQL grouping query
- Analyse ArrayList 3: suppression d'éléments
- Investigation on the operation prospect of the global and Chinese Anti enkephalinase market and analysis report on the investment strategy of the 14th five year plan 2022-2028
- AcWing 3438. Number system conversion
- Research on Swift
- [combinatorics] recursive equation (case where the non-homogeneous part is exponential | example where the non-homogeneous part is exponential)
- Kubernetes resource object introduction and common commands (III)
- 鸿蒙第三次培训
- Micro service component sentinel console call
猜你喜欢
Research Report on competitive strategy Outlook Analysis and investment strategic planning of China's smart home equipment industry, 2022-2028
Select 3 fcpx plug-ins. Come and see if you like them
How to purchase Google colab members in China
Notes on problems -- watching videos on edge will make the screen green
Getting started with deops
聊聊支付流程的設計與實現邏輯
Collection of the most beautiful graduation photos in the graduation season, collection of excellent graduation photos
Kubernetes resource object introduction and common commands (V) - (NFS & PV & PVC)
[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
1164 Good in C
随机推荐
毕业总结
ArrayList分析3 : 删除元素
How to purchase Google colab members in China
supervisor监控Gearman任务
STM32 realizes 74HC595 control
1164 Good in C
[combinatorics] recursive equation (case where the non-homogeneous part is exponential | example where the non-homogeneous part is exponential)
Talk about the design and implementation logic of payment process
[UE4] brush Arctic pack high quality Arctic terrain pack
Leetcode540: a single element in an ordered array
Gear2021 monthly update - December
Getting started with deops
[combinatorics] recursive equation (solution of linear non-homogeneous recursive equation with constant coefficients | standard form and general solution of recursive equation | proof of general solut
Swm32 series Tutorial 4 port mapping and serial port application
Leetcode 108 converts an ordered array into a binary search tree -- recursive method
1147_ Makefile learning_ Target files and dependent files in makefile
List的stream中Long对象与long判等问题记录
ArrayList analysis 3: delete elements
解决Zabbix用snmp监控网络流量不准的问题
(9) Opencv Canny edge detection