CentOS7安裝mysql提示“No package mysql-server available.”


    針對centos7安裝mysql,提示“No package mysql-server available.”錯誤,解決方法如下:

 

     Centos 7 comes with MariaDB instead of MySQL. MariaDb is a open source equivalent to MySQL and can be installed with yum -y install mariadb-server mariadb. If you must have mysql you need to add the mysql-community repo sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm and then you can install MySQLl like you normally do

 

(1)CentOS7帶有MariaDB而不是MySQL,MariaDB和MySQL一樣也是開元的數據庫,您可以使用yum -y install mariadb-server mariadb命令安裝

(2)如果必須要安裝MySQL,首先必須添加mysql社區repo通過輸入命令: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

轉自http://blog.csdn.net/lixiang987654321/article/details/53134162

打賞

免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2021 CODEPRJ.COM