centos – 百胜:Cent OS 7中没有包mysql-server

我刚在我的新Digital Ocean Cent OS 7 x64服​​务器上安装了Apache.在遵循Digital Ocean的教程时,yum无法安装 mysql-server.
# yum install mysql mysql-server mysql-libs mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.usinternet.com
 * extras: mirror.cogentco.com
 * updates: mirror.atlanticmetro.net
Package 1:mariadb-5.5.40-2.el7_0.x86_64 already installed and latest version
No package mysql-server available.
Package 1:mariadb-libs-5.5.40-2.el7_0.x86_64 already installed and latest version
No package mysql-server available.
Nothing to do

# service mysqld start
Redirecting to /bin/systemctl start  mysqld.service
Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.

这是我的第三台服务器设置mysql,但是这个让我难过.

在RHEL 7中,因此在CentOS7中,由于上游重命名/分叉,mysql-packages(或其中大部分,无论如何)已被mariadb-packages替换.只需yum安装mariadb-server mariadb-libs mariadb就可以了 – 命令名称本身仍然主要与mysql相关.

相关文章

linux下开机自启: 在/etc/init.d目录下新建文件elasticsear...
1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以...
最简单的查看方法可以使用ls -ll、ls-lh命令进行查看,当使用...
ASP.NET Core应用程序发布linux在shell中运行是正常的。可一...
设置时区(CentOS 7) 先执行命令timedatectl status|grep &...
vim /etc/sysconfig/network-scripts/ifcfg-eth0 B...