当前位置:网站首页>[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
边栏推荐
- Fedora 21 安装 LAMP 主机服务器
- 鸿蒙第四次培训
- BFS - topology sort
- 解决Zabbix用snmp监控网络流量不准的问题
- c# . Net tool ecosystem
- [combinatorics] generating function (shift property)
- Interviewer: why is the value nil not equal to nil?
- Cloud primordial weekly | CNCF released the 2021 cloud primordial development status report, which was released on istio 1.13
- How to install PHP on Ubuntu 20.04
- 自动渗透测试工具核心功能简述
猜你喜欢

How to install PHP on Ubuntu 20.04

The third day of writing C language by Yabo people

Implementation of Tetris in C language

SQL injection database operation foundation

POM in idea XML graying solution

Select 3 fcpx plug-ins. Come and see if you like them

Golang单元测试、Mock测试以及基准测试

鸿蒙第三次培训

Kubernetes resource object introduction and common commands (V) - (NFS & PV & PVC)

Hongmeng fourth training
随机推荐
[combinatorics] generating function (shift property)
Gear2021 monthly update - December
The difference between get and post
[combinatorics] generating function (linear property | product property)
How to read the source code [debug and observe the source code]
[教程]在 CoreOS 上构建你的第一个应用
1146_ SiCp learning notes_ exponentiation
远程办公工具分享|社区征文
Baiwen.com 7 days Internet of things smart home learning experience punch in the next day
Where is the database account used when running SQL tasks in data warehouse tasks configured
Cloud primordial weekly | CNCF released the 2021 cloud primordial development status report, which was released on istio 1.13
Loop through JSON object list
VM11289 WAService. js:2 Do not have __ e handler in component:
Select 3 fcpx plug-ins. Come and see if you like them
Web-ui automated testing - the most complete element positioning method
Introduction to SolidWorks gear design software tool geartrax
PS screen printing brush 131, many illustrators have followed suit
Golang unit test, mock test and benchmark test
PUT vs. POST for Uploading Files - RESTful API to be Built Using Zend Framework
Tensorboard quick start (pytoch uses tensorboard)