当前位置:网站首页>[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
边栏推荐
- List的stream中Long对象与long判等问题记录
- 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
- Detailed explanation of common network attacks
- AcWing 3438. 数制转换
- [combinatorics] generating function (linear property | product property)
- List of financial products in 2022
- (8) HS corner detection
- Embedded-c language-7
- How to install PHP on Ubuntu 20.04
- TensorBoard快速入门(Pytorch使用TensorBoard)
猜你喜欢

基于人脸识别的课堂考勤系统 tkinter+openpyxl+face_recognition

Automata and automatic line of non-standard design

Play with fancy special effects. This AE super kit is for you

QT adjust win screen brightness and sound size

国内如何购买Google Colab会员

Research Report on investment trends and development planning of China's thermal insulation material industry, 2022-2028

List的stream中Long对象与long判等问题记录

Ml (machine learning) softmax function to realize the classification of simple movie categories

Research on Swift

QT learning diary 9 - dialog box
随机推荐
UE4 official charging resources, with a total price of several thousand
(8) HS corner detection
How to purchase Google colab members in China
Servlet specification Part II
[combinatorics] generating function (shift property)
Swm32 series Tutorial 4 port mapping and serial port application
WEB-UI自动化测试-最全元素定位方法
Research Report on market demand and investment planning for the development of China's office chair industry, 2022-2028
Collection of the most beautiful graduation photos in the graduation season, collection of excellent graduation photos
The third day of writing C language by Yabo people
TCP拥塞控制详解 | 3. 设计空间
Hongmeng third training
Remote office tools sharing | community essay solicitation
互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼
Research on Swift
STM32 realizes 74HC595 control
vs2013已阻止安装程序,需安装IE10
QT adjust win screen brightness and sound size
自动渗透测试工具核心功能简述
[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