{"id":622,"date":"2014-09-12T13:22:55","date_gmt":"2014-09-12T04:22:55","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=622"},"modified":"2014-09-12T20:20:40","modified_gmt":"2014-09-12T11:20:40","slug":"mysqldump_warning_fix","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2014\/09\/12\/mysqldump_warning_fix\/","title":{"rendered":"mysqldump \u306e\u8b66\u544a\u3092\u4fee\u6b63(Warning: Using unique option prefix event instead of events is deprecated and will be removed in a future release. Please use the full name instead.)"},"content":{"rendered":"<p>mysql \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u6642\u306b\u8b66\u544a\u304c\u51fa\u3066\u3044\u308b\u306e\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\uff0e<\/p>\n<p><code>Warning: Using unique option prefix event instead of events is deprecated and will be removed in a future release. Please use the full name instead.<\/code><\/p>\n<p>\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u691c\u7d22\u3059\u308b\u3068\u3061\u3087\u3063\u3068\u524d\u306e\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\u306b\u305d\u308c\u3089\u3057\u3044\u3082\u306e\u304c\uff0e<\/p>\n<blockquote>\n<p>Previously, program options could be specified in full or as any unambiguous prefix. For example, the &#8211;compress option could be given to mysqldump as &#8211;compr, but not as &#8211;comp because the latter is ambiguous. Option prefixes now are deprecated. They can cause problems when new options are implemented for programs. A prefix that is currently unambiguous might become ambiguous in the future. If an unambiguous prefix is given, a warning now occurs to provide feedback. For example: Warning: Using unique option prefix compr instead of compress is deprecated and will be removed in a future release. Please use the full name instead. Option prefixes are no longer supported in MySQL 5.7; only full options are accepted. (Bug #16996656) <a href=\"http:\/\/dev.mysql.com\/doc\/relnotes\/mysql\/5.6\/en\/news-5-6-13.html\">MySQL :: MySQL 5.6 Release Notes :: Changes in MySQL 5.6.13 (2013-07-31)<\/a><\/p>\n<\/blockquote>\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7701\u7565\u3057\u305f\u308a\u3059\u308b\u3068\u8b66\u544a\u3092\u51fa\u3059\u3088\u3046\u306b\u306a\u3063\u305f\u3088\uff0e5.7\u304b\u3089\u4f7f\u3048\u306a\u304f\u306a\u308b\u3088\uff0e\u3068\u3044\u3046\u3053\u3068\u306e\u3088\u3046\u3067\u3059\uff0e<\/p>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306fssh \u7d4c\u7531\u306e\u30ea\u30e2\u30fc\u30c8\u3067\u53d6\u5f97\u3057\u3066\u3044\u3066\uff0c ~\/.ssh\/authorized_keys \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\uff0e<\/p>\n<p><code>command=\"\/usr\/bin\/mysqldump --defaults-file=\/home\/user\/.my.cnf --opt --all-databases --event | \/usr\/bin\/xz -9\",from=\"nnn.nnn.nnn.nnn\",no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding ecdsa-sha2-nistp521 AAAA...<\/code><\/p>\n<p>&#8211;event \u90e8\u5206\u306f\u672c\u6765\u306f &#8211;events \u306e\u69d8\u306a\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u89e3\u6c7a\u3057\u307e\u3057\u305f\uff0e<\/p>\n<p><code>command=\"\/usr\/bin\/mysqldump --defaults-file=\/home\/user\/.my.cnf --opt --all-databases --events | \/usr\/bin\/xz -9\",from=\"nnn.nnn.nnn.nnn\",no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding ecdsa-sha2-nistp521 AAAA...<\/code><\/p>\n<p>\uff03\u3061\u306a\u307f\u306b\u53d7\u3051\u5074\u306f\u3053\u3093\u306a\u611f\u3058 <code>2 13 * * * \/usr\/bin\/ssh -q -p nnnnn -i \/home\/user\/.ssh\/id_ecdsa-mysql-backup user@server &gt; \/backup\/server\/db\/&amp;#96;\/bin\/date +\\%Y\\%M\\%d_\\%H:\\%m:\\%S_\\%s_$$&amp;#96;.sql.xz`<\/code><\/p>\n<div><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B00M939XYA\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=4873116384\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B00IOS36FQ\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>mysql \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u6642\u306b\u8b66\u544a\u304c\u51fa\u3066\u3044\u308b\u306e\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\uff0e Warning: Using unique option prefix event instead of events is deprecated and  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7,6,27],"tags":[276,275,57,284],"class_list":["post-622","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-wheezy","tag-debian-linux","tag-linux","tag-mysql","tag-wheezy"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=622"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/622\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}