﻿{"id":466,"date":"2018-06-01T14:17:48","date_gmt":"2018-06-01T06:17:48","guid":{"rendered":"http:\/\/blog.sway.com.cn\/?p=466"},"modified":"2018-06-01T14:17:48","modified_gmt":"2018-06-01T06:17:48","slug":"%e9%98%bf%e9%87%8c%e4%ba%91centos7%e4%bd%bf%e7%94%a8yum%e5%ae%89%e8%a3%85mysql5-6","status":"publish","type":"post","link":"http:\/\/blog.sway.com.cn\/?p=466","title":{"rendered":"\u963f\u91cc\u4e91Centos7\u4f7f\u7528yum\u5b89\u88c5MySQL5.6"},"content":{"rendered":"<p>centos\u81ea\u5e26\u7684repo\u662f\u4e0d\u4f1a\u81ea\u52a8\u66f4\u65b0\u6bcf\u4e2a\u8f6f\u4ef6\u7684\u6700\u65b0\u7248\u672c\uff0c\u6240\u4ee5\u65e0\u6cd5\u901a\u8fc7yum\u65b9\u5f0f\u5b89\u88c5MySQL\u7684\u9ad8\u7ea7\u7248\u672c\u3002<\/p>\n<p>\u5148\u5b89\u88c5\u5e26\u6709\u53ef\u7528\u7684mysql5\u7cfb\u5217\u793e\u533a\u7248\u8d44\u6e90\u7684rpm\u5305<\/p>\n<pre class=\"lang:default decode:true \">rpm -Uvh http:\/\/dev.mysql.com\/get\/mysql-community-release-el7-5.noarch.rpm<\/pre>\n<p>\u67e5\u770b\u5f53\u524d\u53ef\u7528\u7684mysql\u5b89\u88c5\u8d44\u6e90<\/p>\n<pre class=\"lang:default decode:true \">yum repolist enabled | grep \"mysql.*-community.*\"<\/pre>\n<pre class=\"lang:default decode:true \">mysql-connectors-community\/x86_64 MySQL Connectors Community                  17\r\nmysql-tools-community\/x86_64      MySQL Tools Community                       31\r\nmysql56-community\/x86_64          MySQL 5.6 Community Server                 199<\/pre>\n<p>\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528yum\u7684\u65b9\u5f0f\u5b89\u88c5MySQL\u4e86<\/p>\n<pre class=\"lang:default decode:true \">yum -y install mysql-community-server<\/pre>\n<p>\u52a0\u5165\u5f00\u673a\u542f\u52a8<\/p>\n<pre class=\"lang:default decode:true \">systemctl enable mysqld<\/pre>\n<p>\u5b89\u88c5\u7ed3\u675f<\/p>\n<div id=\"home\"><\/div>\n<div id=\"home\"><\/div>\n<div id=\"home\"><\/div>\n<div id=\"home\"><\/div>\n<div id=\"home\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>centos\u81ea\u5e26\u7684repo\u662f\u4e0d\u4f1a\u81ea\u52a8\u66f4\u65b0\u6bcf\u4e2a\u8f6f\u4ef6\u7684\u6700\u65b0\u7248\u672c\uff0c\u6240\u4ee5\u65e0\u6cd5\u901a\u8fc7yum\u65b9\u5f0f\u5b89\u88c5MySQL\u7684\u9ad8\u7ea7\u7248\u672c\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[235],"class_list":["post-466","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-mysql"],"_links":{"self":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=466"}],"version-history":[{"count":1,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions"}],"predecessor-version":[{"id":467,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions\/467"}],"wp:attachment":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=466"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}