{"id":258,"date":"2016-12-10T17:01:52","date_gmt":"2016-12-10T09:01:52","guid":{"rendered":"https:\/\/blog.freesilo.com\/?p=258"},"modified":"2016-12-10T17:01:52","modified_gmt":"2016-12-10T09:01:52","slug":"linux%e4%b8%8bmysql%e5%8d%b8%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/freesilo.com\/?p=258","title":{"rendered":"linux\u4e0bmysql\u5378\u8f7d"},"content":{"rendered":"<h3>1. \u67e5\u627e\u5b89\u88c5\u7684mysql\u5305<\/h3>\n<p>[root@root ~]# rpm -qa|grep -i mysql<br \/>\nmysql-community-libs-compat-5.6.24-3.el6.x86_64<br \/>\nmysql-community-libs-5.6.24-3.el6.x86_64<br \/>\nmysql-community-server-5.6.24-3.el6.x86_64<br \/>\nmysql-community-common-5.6.24-3.el6.x86_64<br \/>\nmysql-community-client-5.6.24-3.el6.x86_64<\/p>\n<h3>2. \u505c\u6b62mysql\u670d\u52a1\u5668\u5220\u9664mysql<\/h3>\n<p>[root@root\u00a0~]# sudo service mysqld stop<br \/>\nStopping mysqld: \u00a0[ \u00a0OK \u00a0]<br \/>\n[root@root ~]# rpm -ev mysql-community-server-5.6.24-3.el6.x86_64<br \/>\nwarning: \/etc\/my.cnf saved as \/etc\/my.cnf.rpmsave<br \/>\n[root@root ~]# rpm -ev mysql-community-client-5.6.24-3.el6.x86_64<\/p>\n<h3>\u81ea\u5e26mysql\u5305\u4f7f\u7528\u4e0b\u9762\u547d\u4ee4\u5378\u8f7d<\/h3>\n<p>[root@root ~]# rpm -ev &#8211;nodeps mysql-community-libs-compat-5.6.24-3.el6.x86_64<br \/>\n[root@root ~]# rpm -ev &#8211;nodeps mysql-community-libs-5.6.24-3.el6.x86_64<br \/>\n[root@root ~]# rpm -ev &#8211;nodeps mysql-community-common-5.6.24-3.el6.x86_64<\/p>\n<p>[root@root ~]# rpm -qa|grep -i mysql<br \/>\n[root@root ~]#<\/p>\n<h3>3. \u67e5\u627emysql\u76ee\u5f55\uff0c\u5e76\u4e14\u5220\u9664mysql\u7684\u6587\u4ef6\u548c\u5e93<\/h3>\n<p>[root@root ~]# find \/ -name mysql<br \/>\n\/var\/lib\/mysql<br \/>\n\/var\/lib\/mysql\/mysql<br \/>\n\/usr\/share\/mysql<br \/>\n[root@root ~]#<br \/>\n[root@root ~]# rm -rf \/var\/lib\/mysql<br \/>\n[root@root ~]# rm -rf \/usr\/share\/mysql<\/p>\n<p>\u5220\u9664my.cnf \u6587\u4ef6\uff0c\u5220\u9664mysql-community-server\u5df2\u5c06my.cnf\u6539\u540d\u4e3amy.cnf.rpmsave<br \/>\n[root@root etc]# ls my.cnf*<br \/>\nmy.cnf.rpmsave<br \/>\n[root@root etc]# rm -rf \/etc\/my.cnf.rpmsave<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u67e5\u627e\u5b89\u88c5\u7684mysql\u5305 [root@root ~]# rpm -qa|gr&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/freesilo.com\/?p=258\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-258","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=258"}],"version-history":[{"count":1,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/258\/revisions"}],"predecessor-version":[{"id":259,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/258\/revisions\/259"}],"wp:attachment":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}