﻿{"id":1754,"date":"2018-08-30T15:57:59","date_gmt":"2018-08-30T07:57:59","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=1754"},"modified":"2018-08-30T15:57:59","modified_gmt":"2018-08-30T07:57:59","slug":"ubuntu18-04%e5%ae%89%e8%a3%85mysql-5-5","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/linux\/1754","title":{"rendered":"ubuntu18.04\u5b89\u88c5mysql 5.5"},"content":{"rendered":"<p>\u5b98\u7f51\u4e0b\u8f7dLINUX\u7f16\u8bd1\u7248\u672c\u00a0<span class=\"s1\"><b>mysql-5.5.61-linux-glibc2.12-x86_64.tar.gz\u00a0<\/b><\/span>\u89e3\u538b<\/p>\n<ol class=\"dp-sql\">\n    <li class=\"alt\">shell>\u00a0sudo\u00a0apt-get\u00a0install\u00a0libaio-dev\uff08\u6216\u8005libaio1\uff09<\/li>\n    <li>shell> sudo groupadd\u00a0mysql<\/li>\n    <li class=\"alt\">shell> sudo useradd\u00a0-r\u00a0\/nonexistent -s \/bin\/false -c mysql -g\u00a0mysql\u00a0mysql<\/li>\n    <li>shell> sudo cd\u00a0\/usr\/<span class=\"keyword\">local<\/span><\/li>\n    <li class=\"alt\">shell>\u00a0tar\u00a0zxvf\u00a0\/home\/niumd\/mysql-5.5.13-linux2.6-i686.tar.gz<\/li>\n    <li>shell> sudo mv \/home\/niumd\/mysql-5.5.13-linux2.6-i686 \/usr\/<span class=\"keyword\">local<\/span>\/mysql<\/li>\n    <li class=\"alt\">shell>\u00a0cd \/usr\/<span class=\"keyword\">local<\/span>\/mysql<\/li>\n    <li>shell> sudo chown\u00a0-R\u00a0mysql:mysql .<\/li>\n    <li>shell> sudo scripts\/mysql_install_db\u00a0<span class=\"comment\">&#8211;user=mysql\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/li>\n    <li class=\"alt\">shell> sudo chown\u00a0-R\u00a0mysql:mysql data<\/li>\n    <li>shell> sudo cp\u00a0support-files\/mysql.server\u00a0\/etc\/init.d\/mysql.server<\/li>\n    <li class=\"alt\">shell> sudo cp\u00a0support-files\/my-medium.cnf\u00a0\/etc\/mysql\/my.cnf<\/li>\n    <li>shell> sudo bin\/mysqld_safe\u00a0<span class=\"comment\">&#8211;user=mysql\u00a0&#038;\u00a0<\/span><\/li>\n    <li>shell> sudo pwd \/usr\/local\/mysql<\/li>\n    <li>shell> sudo bin\/mysqladmin -u root password &#8216;new-password&#8217;<\/li>\n    <li>shell> sudo bin\/mysql -uroot -p<\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>\u5b98\u7f51\u4e0b\u8f7dLINUX\u7f16\u8bd1\u7248\u672c\u00a0mysql-5.5.61-linux-glibc2.12-x86_64.tar.gz\u00a0\u89e3\u538b shell>\u00a0sudo\u00a0apt-get\u00a0install\u00a0libaio-dev\uff08\u6216&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1754","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=1754"}],"version-history":[{"count":1,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1754\/revisions"}],"predecessor-version":[{"id":1755,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1754\/revisions\/1755"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=1754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=1754"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=1754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}