{"id":5199,"date":"2021-05-26T16:15:46","date_gmt":"2021-05-26T08:15:46","guid":{"rendered":"https:\/\/cn.hostease.com\/xueyuan\/?p=5199"},"modified":"2021-05-26T16:15:46","modified_gmt":"2021-05-26T08:15:46","slug":"centos7%e9%87%87%e7%94%a8mariadb%e6%9d%a5%e4%bb%a3%e6%9b%bfmysql","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/zhuji\/centos7%e9%87%87%e7%94%a8mariadb%e6%9d%a5%e4%bb%a3%e6%9b%bfmysql\/","title":{"rendered":"CentOs7\u91c7\u7528MariaDB\u6765\u4ee3\u66ffMysql"},"content":{"rendered":"<p><center><\/center>\u3000\u3000\u4f7f\u7528Yum<span style=\"color: #ff0000;\"><strong><a style=\"color: #ff0000;\" href=\"https:\/\/cn.hostease.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5b89\u88c5\u6570\u636e\u5e93<\/a><\/strong><\/span>\u6bd4\u8f83\u7b80\u5355\uff0c\u4f46\u5f53\u4f60\u5728centos7\u7cfb\u7edf\u4e0a\uff0c\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4<\/p>\n<p>yum install mysql-server mysql-libs mysql<\/p>\n<p>\u6765\u5b89\u88c5MySQL\uff0c\u5c06\u4f1a\u6536\u5230\u5982\u4e0b\u62a5\u9519\u4fe1\u606f<\/p>\n<p>Loaded plugins\uff1a fastestmirror<\/p>\n<p>Loading mirror speeds from cached hostfile<\/p>\n<p>* base\uff1a mirrors.skyshe.cn<\/p>\n<p>* extras\uff1a mirrors.zju.edu.cn<\/p>\n<p>* updates\uff1a centos.ustc.edu.cn<\/p>\n<p>No package mysql-server available.<\/p>\n<p>Package 1:mariadb-libs-5.5.47-1.el7_2.x86_64 already installed and latest version<\/p>\n<p>Package 1:mariadb-5.5.47-1.el7_2.x86_64 already installed and latest version<\/p>\n<p>Nothing to do<\/p>\n<p>\u4ed4\u7ec6\u67e5\u770b\u62a5\u9519\u4f1a\u53d1\u73b0\uff0c\u5b58\u5728\u4e00\u6761 No package mysql-server available.<\/p>\n<p>\u6570\u636e\u5e93\u670d\u52a1\u7aef\u4e0d\u5b58\u5728\u3002\u5f53\u4f60\u68c0\u67e5\u5b8cYum\u6e90\u786e\u8ba4\u6ca1\u6709\u95ee\u9898\u65f6\u3002\u63a8\u8350\u9605\u8bfb\uff1a\u300a<a class=\"row-title\" href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-admin\/post.php?post=1691&amp;action=edit\" aria-label=\"\u201cMySQL \u521b\u5efa\u6570\u636e\u5e93\u201d\uff08\u7f16\u8f91\uff09\">MySQL \u521b\u5efa\u6570\u636e\u5e93<\/a>\u300b<\/p>\n<p>\u5c06\u62a5\u9519\u4fe1\u606f\u8f93\u5165\u641c\u7d22\u5f15\u64ce\u624d\u53d1\u73b0MariaDB\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u662fMySQL\u7684\u4e00\u4e2a\u5206\u652f\uff0c\u4e3b\u8981\u7531\u5f00\u6e90\u793e\u533a\u5728\u7ef4\u62a4\uff0c\u91c7\u7528GPL\u6388\u6743\u8bb8\u53ef\u3002\u5f00\u53d1\u8fd9\u4e2a\u5206\u652f\u7684\u539f\u56e0\u4e4b\u4e00\u662f\uff1a\u7532\u9aa8\u6587\u516c\u53f8\u6536\u8d2d\u4e86MySQL\u540e\uff0c\u6709\u5c06MySQL\u95ed\u6e90\u7684\u6f5c\u5728\u98ce\u9669\uff0c\u56e0\u6b64\u793e\u533a\u91c7\u7528\u5206\u652f\u7684\u65b9\u5f0f\u6765\u907f\u5f00\u8fd9\u4e2a\u98ce\u9669\u3002\u63a8\u8350\u9605\u8bfb\uff1a\u300a<a class=\"row-title\" href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-admin\/post.php?post=1693&amp;action=edit\" aria-label=\"\u201cMySQL \u5220\u9664\u6570\u636e\u5e93\u201d\uff08\u7f16\u8f91\uff09\">MySQL \u5220\u9664\u6570\u636e\u5e93<\/a>\u300b<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4Centos7\u91c7\u7528MariaDB\u6765\u4ee3\u66ffMysql\uff0c\u6240\u4ee5\u53ef\u4ee5\u7528\u5982\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5MariaDB<\/p>\n<p>yum -y install mariadb-server mariadb<\/p>\n<p>\u4f60\u53ef\u80fd\u4f1a\u8bf4\uff0c\u6211\u5c31\u8981\u5b89\u88c5mysql\uff0c\u90a3\u6211\u4eec\u53ef\u4ee5\u91c7\u7528rpm\u5305\u5b89\u88c5\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6dfb\u52a0\u5982\u4e0b\u8bed\u53e5\uff1a<\/p>\n<p>sudo rpm -Uvh https:\/\/dev.mysql.com\/get\/mysql-community-release-el7-5.noarch.rpm<\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u6309\u7167\u539f\u6765\u65b9\u6cd5\u5b89\u88c5MySQL\u4e86\u3002\u63a8\u8350\u9605\u8bfb\uff1a\u300a<a class=\"row-title\" href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-admin\/post.php?post=1695&amp;action=edit\" aria-label=\"\u201cMySQL \u9009\u62e9\u6570\u636e\u5e93\u201d\uff08\u7f16\u8f91\uff09\">MySQL \u9009\u62e9\u6570\u636e\u5e93<\/a>\u300b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u4f7f\u7528Yum\u5b89\u88c5\u6570\u636e\u5e93\u6bd4\u8f83\u7b80\u5355\uff0c\u4f46\u5f53\u4f60\u5728centos7\u7cfb\u7edf\u4e0a\uff0c\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4 yum install mysq &#8230; <a title=\"CentOs7\u91c7\u7528MariaDB\u6765\u4ee3\u66ffMysql\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/zhuji\/centos7%e9%87%87%e7%94%a8mariadb%e6%9d%a5%e4%bb%a3%e6%9b%bfmysql\/\" aria-label=\"\u9605\u8bfb CentOs7\u91c7\u7528MariaDB\u6765\u4ee3\u66ffMysql\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[877],"tags":[1028],"class_list":["post-5199","post","type-post","status-publish","format-standard","hentry","category-zhuji","tag-1028"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/5199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=5199"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/5199\/revisions"}],"predecessor-version":[{"id":5200,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/5199\/revisions\/5200"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=5199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=5199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=5199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}