{"id":89,"date":"2015-01-09T09:52:04","date_gmt":"2015-01-09T00:52:04","guid":{"rendered":"http:\/\/www.raythebm.net\/weblog\/?p=89"},"modified":"2015-02-18T10:09:46","modified_gmt":"2015-02-18T01:09:46","slug":"mariadb-%e3%82%92-debian6squeeze-%e3%81%ab%e5%85%a5%e3%82%8c%e3%82%8b%e3%81%ae%e3%81%8c%e5%a4%a7%e5%a4%89%e3%81%a0%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.raythebm.net\/weblog\/archives\/89","title":{"rendered":"MariaDB \u3092 Debian6(squeeze) \u306b\u5165\u308c\u308b\u306e\u304c\u5927\u5909\u3060\u3063\u305f"},"content":{"rendered":"<p>\u77e5\u308a\u5408\u3044\u304b\u3089\u983c\u307e\u308c\u3066 MariaDB \u3092 Debian6 \u306b\u5165\u308c\u305f\u3093\u3067\u3059\u304c\u3001\u516c\u5f0f\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5(apt \u30ea\u30dd\u30b8\u30c8\u30ea\u8ffd\u52a0 \u2192 apt-get update \u2192 apt-get install mariadb-server)\u3067\u306f\u6700\u5f8c\u306e\u65b9\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3044\u3001\u60a9\u307f\u307e\u3057\u305f\u3002<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3046\u308d\u899a\u3048\u306a\u304c\u3089\u65b9\u6cd5\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u516c\u5f0f\u306e\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6311\u6226\u3057\u307e\u3059\u3002<br \/>\n\u305d\u3046\u3059\u308b\u3068\u300csubprocess installed post-installation script returned error\u300d\u3068\u304b\u304c\u51fa\u3066\u30a8\u30e9\u30fc\u7d42\u4e86\u3059\u308b\u306f\u305a\u3067\u3059\u3002(\u51fa\u306a\u3044\u3067\u6210\u529f\u3057\u305f\u8cb4\u65b9\u306f\u30e9\u30c3\u30ad\u30fc\u3067\u3059\u306d)<br \/>\n<!--more--><\/p>\n<p>\u305d\u308c\u3067\u3001DB \u30d5\u30a9\u30eb\u30c0\u3092\u65b0\u3057\u3044\u3082\u306e\u306b\u4f5c\u308a\u76f4\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305a \/var\/lib\/mysql \u3092\u9069\u5f53\u306b\u30ea\u30cd\u30fc\u30e0\u3057\u307e\u3059\u3002<br \/>\n\u7d9a\u3044\u3066\u300cmysql_install_db\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u65b0\u3057\u3044 \/var\/lib\/mysql \u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u3057\u305f\u3089\u300cmysqld &#038;\u300d\u3067\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u3066\u3084\u3063\u3066\u3001\u300cmysql -u root\u300d\u3067\u63a5\u7d9a\u3057\u307e\u3059\u3002<br \/>\n\u30c0\u30e1\u3060\u3063\u305f\u3089 \/etc\/mysql\/my.cnf \u306e\u4e2d\u306b\u3042\u308b\u300csocket = xxxx\u300d\u306e\u90e8\u5206\u3092\u300csocket = \/tmp\/mysqld.sock\u300d\u306b\u5909\u66f4\u3057\u3066\u518d\u30c1\u30e3\u30ec\u30f3\u30b8\u3067\u3059\u3002(\u5143\u306e\u6587\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046)<\/p>\n<p>\u3067\u3001\u63a5\u7d9a\u3057\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u4e0a\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8abf\u6574\u3057\u307e\u3059\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305a root \u306f\u300cUPDATE mysql.user SET password = &#8221; WHERE user = &#8216;root&#8217;;\u300d\u3067\u3044\u3044\u3067\u3059\u3002(\u9014\u4e2d\u306e\u300c&#8221;\u300d\u306f\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c8\u3067\u306f\u306a\u304f\u3001\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c82\u500b\u3067\u3059)<br \/>\n\u3082\u3046\u4e00\u3064 debian-sys-maint \u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3082\u8a2d\u5b9a\u3059\u308b\u3093\u3067\u3059\u304c\u3001\u3053\u308c\u306f \/etc\/mysql\/debian.cnf \u306e\u4e2d\u306b\u3042\u308b password \u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002\u4e00\u65e6\u30e1\u30e2\u3059\u308b\u306a\u308a\u30b3\u30d4\u30fc\u3059\u308b\u306a\u308a\u3057\u3066\u304b\u3089\u300cSET PASSWORD FOR &#8216;debian-sys-maint&#8217;@&#8217;localhost&#8217; = PASSWORD(&#8216;\u30e1\u30e2\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9&#8217;);\u300d\u3067\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066\u5fd8\u308c\u306a\u3044\u3046\u3061\u306b\u300cFLUSH PRIVILEGES;\u300d\u3082\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u7d9a\u3044\u3066 mysqld \u3092\u4e00\u65e6\u505c\u6b62\u3057\u307e\u3059\u3002(kill \u3067\u3044\u3044\u3067\u3059\u3002\u5c11\u3057\u3060\u3051\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u306e\u3067\u614c\u3066\u3066 kill -9 \u3068\u304b\u3057\u306a\u3044\u3067\u4e0b\u3055\u3044)<br \/>\n\u305d\u308c\u304b\u3089\u3001\/etc\/mysql\/my.cnf \u3067 socket \u3092\u5909\u66f4\u3057\u3066\u3044\u305f\u5834\u5408\u306f\u5143\u306b\u623b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u6700\u5f8c\u306b\u300cdpkg &#8211;configure -a\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u305b\u305a\u306b\u7d42\u4e86\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067\u4f55\u3068\u304b\u5c0e\u5165\u6210\u529f\u3067\u3059\u3002<br \/>\n\u30c8\u30e9\u30d6\u30eb\u304c\u3042\u3063\u305f\u3089 \/var\/log\/syslog \u3068\u304b \/var\/log\/mysql\/error.log \u3068\u304b\u3092\u898b\u3066\u968f\u6642\u5bfe\u51e6\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001\u4e0a\u306e\u624b\u9806\u306f\u5b9f\u969b\u306b\u8a66\u884c\u932f\u8aa4\u3057\u305f\u904e\u7a0b\u3092\u601d\u3044\u51fa\u3057\u306a\u304c\u3089\u66f8\u3044\u305f\u305f\u3081\u3001\u304b\u306a\u308a\u306e\u78ba\u7387\u3067\u4e0d\u8db3\u3084\u4e0d\u6b63\u78ba\u306a\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u3002\u53c2\u8003\u306b\u3059\u308b\u5834\u5408\u306f\u81ea\u5df1\u8cac\u4efb\u3067\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u77e5\u308a\u5408\u3044\u304b\u3089\u983c\u307e\u308c\u3066 MariaDB \u3092 Debian6 \u306b\u5165\u308c\u305f\u3093\u3067\u3059\u304c\u3001\u516c\u5f0f\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5(apt \u30ea\u30dd\u30b8\u30c8\u30ea\u8ffd\u52a0 \u2192 apt-get update \u2192 apt-get install mariadb-serve &hellip; <a href=\"https:\/\/www.raythebm.net\/weblog\/archives\/89\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9,36,13,11],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-it","tag-howto","tag-mariadb","tag-mysql","tag-system"],"_links":{"self":[{"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":4,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/posts\/89\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}