{"id":2525,"date":"2016-01-19T11:27:06","date_gmt":"2016-01-19T02:27:06","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2525"},"modified":"2016-01-19T11:27:06","modified_gmt":"2016-01-19T02:27:06","slug":"mysql-mysqldump%e3%81%a7skipping-the-data-of-table-mysql-event-specify-the-events-option-explicitly","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2016\/01\/19\/mysql-mysqldump%e3%81%a7skipping-the-data-of-table-mysql-event-specify-the-events-option-explicitly\/","title":{"rendered":"MySQL mysqldump\u3067Skipping the data of table mysql.event. Specify the &#8211;events option explicitly."},"content":{"rendered":"<p>MySQL\u306e\u65e5\u6642\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u305f\u305f\u3081\u3042\u307e\u308a\u6c17\u306b\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u304c\u3001\u6bce\u65e5\u4ee5\u4e0b\u306e\u30ef\u30fc\u30cb\u30f3\u30b0\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<p>Skipping the data of table mysql.event. Specify the &#8211;events option explicitly.<\/p>\n<p>\u3069\u3046\u3082event\u30c6\u30fc\u30d6\u30eb\u306a\u308b\u3082\u306e\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3089\u3057\u304f\u3001\u3053\u308c\u3092\u30c0\u30f3\u30d7\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u305b\u306d\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n<p>[shell]<br \/>\n# before<br \/>\nmysqldump -u root -x &#8211;all-databases &#8211;password=xxxx | gzip > ${BACKUP_BASE}\/mysqldump.sql.gz<br \/>\n# after<br \/>\nmysqldump -u root -x &#8211;all-databases &#8211;events &#8211;password=xxxx | gzip > ${BACKUP_BASE}\/mysqldump.sql.gz<br \/>\n[\/shell]<\/p>\n<p>\u5b9f\u884c\u3057\u3066\u30ef\u30fc\u30cb\u30f3\u30b0\u304c\u51fa\u529b\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL\u306e\u65e5\u6642\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u305f\u305f\u3081\u3042\u307e\u308a\u6c17\u306b\u3057\u3066\u3044\u306a &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2016\/01\/19\/mysql-mysqldump%e3%81%a7skipping-the-data-of-table-mysql-event-specify-the-events-option-explicitly\/\">\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":[],"categories":[7,147],"tags":[494],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2525"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2525"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2525\/revisions"}],"predecessor-version":[{"id":2526,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2525\/revisions\/2526"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}