﻿{"id":149,"date":"2013-09-17T14:58:10","date_gmt":"2013-09-17T06:58:10","guid":{"rendered":"http:\/\/blog.sway.com.cn\/?p=149"},"modified":"2016-05-11T15:11:01","modified_gmt":"2016-05-11T07:11:01","slug":"centos-6%e4%b8%8ayum%e5%ae%89%e8%a3%85mysql-5-5","status":"publish","type":"post","link":"http:\/\/blog.sway.com.cn\/?p=149","title":{"rendered":"CentOS-6\u4e0ayum\u5b89\u88c5mysql-5.5\/5.1"},"content":{"rendered":"<p>centos-5\u7684\u6e90\u9ed8\u8ba4\u63d0\u4f9bmysql-5.0\u7684rpm\u5305\uff0c\u800ccentos-6\u7684\u6e90\u9ed8\u8ba4\u63d0\u4f9bmysql-5.1\u7684rpm\u5305\uff0c\u8fd9\u90fd\u6709\u70b9\u65e7\u4e86\uff0c\u4e0b\u9762\u7531www.centos.bz\u63d0\u4f9byum\u5b89\u88c5mysql-5.5\/5.1\u7684\u65b9\u6cd5<\/p>\n<p>1\u3001\u5bfc\u5165\u7b2c\u4e09\u65b9\u6e90webtatic<\/p>\n<p>CentOS-5\uff1a<\/p>\n<pre class=\"lang:sh decode:true\">rpm -Uvh http:\/\/repo.webtatic.com\/yum\/centos\/5\/latest.rpm<\/pre>\n<p>CentOS-6\uff1a<\/p>\n<pre class=\"lang:default decode:true\">rpm -Uvh http:\/\/repo.webtatic.com\/yum\/el6\/latest.rpm<\/pre>\n<p>2\u3001\u5b89\u88c5MySQL client<\/p>\n<pre class=\"lang:sh decode:true\">yum install libmysqlclient15 --enablerepo=webtatic<\/pre>\n<p>3\u3001\u5220\u9664\u5b58\u5728\u7684mysql<\/p>\n<pre class=\"lang:sh decode:true\">yum remove mysql mysql-*<\/pre>\n<p>4\u3001\u5b89\u88c5mysql<\/p>\n<p>mysql-5.5:<\/p>\n<pre class=\"lang:sh decode:true \">yum install mysql55w mysql55w-server --enablerepo=webtatic<\/pre>\n<p>mysql-5.1:<\/p>\n<pre class=\"lang:sh decode:true\">yum install mysql51 mysql51-server --enablerepo=webtatic<\/pre>\n<p>5\u3001\u542f\u52a8\u5e76\u5347\u7ea7mysql<\/p>\n<pre class=\"lang:sh decode:true\">service mysqld start\r\nmysql_upgrade<\/pre>\n<p>6\u3001\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8<\/p>\n<pre class=\"lang:default decode:true \">chkconfig mysqld on<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>centos-5\u7684\u6e90\u9ed8\u8ba4\u63d0\u4f9bmysql-5.0\u7684rpm\u5305\uff0c\u800ccentos-6\u7684\u6e90\u9ed8\u8ba4\u63d0\u4f9bmysql-5.1\u7684r [&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":[],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/149","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=149"}],"version-history":[{"count":5,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":376,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/149\/revisions\/376"}],"wp:attachment":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}