问题原文
原帖链接 · User · CC BY-SA 3.0
I just installed Apache on my new Digital Ocean Cent OS 7 x64 server. When following Digital Ocean's tutorial, yum cannot install 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.
This is my 3rd server setting up mysql, but this one has stumped me.
已采纳解答
原帖链接 · John · CC BY-SA 3.0
In RHEL 7, and consequently in CentOS7, the mysql- packages (or most of them, anyway) have been replaced with mariadb- packages due to an upstream rename/fork. Simply yum install mariadb-server mariadb-libs mariadb and you should be okay - the command names themselves are still mostly mysql related.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
