{"id":31,"date":"2009-07-18T03:47:14","date_gmt":"2009-07-17T18:47:14","guid":{"rendered":"http:\/\/lumieir.net\/blog\/?p=31"},"modified":"2009-07-22T14:13:36","modified_gmt":"2009-07-22T05:13:36","slug":"mysql%e3%81%ae%e3%83%ac%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3","status":"publish","type":"post","link":"http:\/\/lumieir.net\/blog\/2009\/07\/mysql%e3%81%ae%e3%83%ac%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/","title":{"rendered":"MySQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3"},"content":{"rendered":"<p>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u3064\u3082\u308a\u3067\u3082\u826f\u3044\u3057\u3001\u53c2\u7167\u7528\u306eDB\u3068\u3057\u3066\u3082\u826f\u3044\u3057\u3001\u304a\u624b\u8efd\u3067\u4f7f\u3044\u6613\u3044MySQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3002<br \/>\n\u8a2d\u5b9a\u65b9\u6cd5\u3092\u8a18\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><code><strong>\u30de\u30b9\u30bf\u306e\u8a2d\u5b9a<\/strong><br \/>\n\u30b9\u30ec\u30fc\u30d6\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u304a\u304f\u3002<br \/>\n\u7279\u6a29\u306fRepl_slave_priv\u3060\u3051\u4ed8\u4e0e\u3057\u3066\u304a\u3051\u3070OK!<br \/>\n<\/code><\/p>\n<p><code><strong>\u30b9\u30ec\u30fc\u30d6\u306e\u8a2d\u5b9a<\/strong><br \/>\n\u8a2d\u5b9a\u306fmy.cnf\u306b\u66f8\u304d\u8fbc\u3093\u3067\u3044\u304d\u307e\u3059\u3002<br \/>\n[mysqld]<br \/>\nlog-bin <span style=\"color: #99cc00;\">\u30d0\u30a4\u30ca\u30ea\u30ed\u30b0\u3092\u6709\u52b9\u306b\u3059\u308b<\/span><br \/>\nserver-id = 2 <span style=\"color: #99cc00;\">\u30de\u30b9\u30bf\u304c1\u3001\u30b9\u30ec\u30fc\u30d6\u306f2,3,4\u3068\u3057\u3066\u3044\u304f<\/span><br \/>\nmaster-host = master <span style=\"color: #99cc00;\">\u30de\u30b9\u30bf\u306eIP\u30a2\u30c9\u30ec\u30b9\u304b\u30db\u30b9\u30c8\u540d<\/span><br \/>\nmaster-user = user <span style=\"color: #99cc00;\">\u30de\u30b9\u30bf\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u540d<\/span><br \/>\nmaster-password = password <span style=\"color: #99cc00;\">\u30de\u30b9\u30bf\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9<\/span><br \/>\nslave-skip-errors=1062,1050,1054 <span style=\"color: #99cc00;\">\u30b9\u30ec\u30fc\u30d6\u3067\u7121\u8996\u3059\u308b\u30a8\u30e9\u30fc\u756a\u53f7<\/span><br \/>\n<a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.1\/ja\/error-messages-server.html\" target=\"_blank\"><span style=\"color: #99cc00;\">http:\/\/dev.mysql.com\/doc\/refman\/5.1\/ja\/error-messages-server.html<\/span><\/a><\/code><\/p>\n<p><code><strong>MySQL\u30ea\u30b9\u30bf\u30fc\u30c8<\/strong><br \/>\n\u30b9\u30ec\u30fc\u30d6\u306eMySQL\u3092\u30ea\u30b9\u30bf\u30fc\u30c8<br \/>\n# \/etc\/init.d\/mysql restart<br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30b9\u30ec\u30fc\u30d6\u306e\u72b6\u614b\u3092\u78ba\u8a8d<br \/>\n# mysql -u root -p<br \/>\n> show slave status;<br \/>\n<\/code><\/p>\n<p>\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u3059\u3002<\/p>\n<h3 class='related_post_title'>\u95a2\u9023\u8a18\u4e8b:<\/h3><ul class='related_post'><li>\u3042\u308a\u307e\u305b\u3093<\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u3064\u3082\u308a\u3067\u3082\u826f\u3044\u3057\u3001\u53c2\u7167\u7528\u306eDB\u3068\u3057\u3066\u3082\u826f\u3044\u3057\u3001\u304a\u624b\u8efd\u3067\u4f7f\u3044\u6613\u3044MySQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3002 \u8a2d\u5b9a\u65b9\u6cd5\u3092\u8a18\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30de\u30b9\u30bf\u306e\u8a2d\u5b9a \u30b9\u30ec\u30fc\u30d6\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u304a\u304f\u3002 \u7279\u6a29\u306fRepl_sl &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"http:\/\/lumieir.net\/blog\/2009\/07\/mysql%e3%81%ae%e3%83%ac%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\"> <span class=\"screen-reader-text\">MySQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/span> \u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,4],"tags":[9],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-mysql-tech","category-tech","tag-9"],"_links":{"self":[{"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":9,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":47,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions\/47"}],"wp:attachment":[{"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}