我刚在我的新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相关.