{"id":896,"date":"2012-07-17T07:50:28","date_gmt":"2012-07-17T03:50:28","guid":{"rendered":"http:\/\/saradmin.ru\/?p=896"},"modified":"2014-06-14T18:56:32","modified_gmt":"2014-06-14T14:56:32","slug":"%d0%ba%d0%be%d1%80%d0%be%d1%82%d0%ba%d0%be-%d1%81%d0%ba%d0%be%d0%bf%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d1%82%d1%8c-%d0%b1%d0%b0%d0%b7%d1%83-mysql","status":"publish","type":"post","link":"https:\/\/saradmin.ru\/?p=896","title":{"rendered":"\u041a\u043e\u0440\u043e\u0442\u043a\u043e: \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u0443 MySQL"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/saradmin.ru\/wp-content\/uploads\/tips.gif\" alt=\"\" title=\"\u0437\u0430\u043c\u0435\u0442\u043a\u0438\" width=\"35\" height=\"35\" class=\"alignleft size-full wp-image-821\" \/><\/p>\n<h1><strong>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0430\u043c\u043f \u0431\u0430\u0437\u044b MySQL<\/strong><\/h1>\n<p><code>mysqldump -u<em>\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c_\u0411\u0414<\/em> -p<em>\u043f\u0430\u0440\u043e\u043b\u044c_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f_\u0411\u0414<\/em> <em>\u0438\u043c\u044f_\u0411\u0414<\/em> > <em>\u0438\u043c\u044f_\u0444\u0430\u0439\u043b\u0430_\u0434\u0430\u043c\u043f\u0430.sql<\/em><\/code><\/p>\n<p>\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<p><code>mysqldump -uroot -p123456 database > database.sql<\/code><\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0431\u0430\u0437\u044b, \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u043c\u0435\u043d\u0438 \u0431\u0430\u0437\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <strong>-A<\/strong>.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 DROP TABLE \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c CREATE TABLE, \u043b\u0443\u0447\u0448\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043c\u043f \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <strong><em>&#8212;add-drop-table<\/em><\/strong>:<\/p>\n<p><code>mysqldump --add-drop-table -uroot -p123456 database > database.sql<\/code><\/p>\n<h1>\u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043c\u043f \u0431\u0430\u0437\u044b MySQL<\/h1>\n<p><code>mysql -u<em>\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c_\u0411\u0414<\/em> -p<em>\u043f\u0430\u0440\u043e\u043b\u044c_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f_\u0411\u0414<\/em> <em>\u0438\u043c\u044f_\u0411\u0414<\/em> < <em>\u0438\u043c\u044f_\u0444\u0430\u0439\u043b\u0430_\u0434\u0430\u043c\u043f\u0430.sql<\/em><\/code><\/p>\n<p>\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<p><code>mysql -uroot -p123456 database < database.sql<\/code><\/p>\n<p>\u0418\u043b\u0438 \u0442\u0430\u043a:<\/p>\n<p><code>mysql -u<em>\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c_\u0411\u0414<\/em> -p<em>\u043f\u0430\u0440\u043e\u043b\u044c_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f_\u0411\u0414<\/em> -e \"source <em>\u0438\u043c\u044f_\u0444\u0430\u0439\u043b\u0430_\u0434\u0430\u043c\u043f\u0430.sql<\/em>\" <em>\u0438\u043c\u044f_\u0411\u0414<\/em><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0430\u043c\u043f \u0431\u0430\u0437\u044b MySQL mysqldump -u\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c_\u0411\u0414 -p\u043f\u0430\u0440\u043e\u043b\u044c_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f_\u0411\u0414 \u0438\u043c\u044f_\u0411\u0414 > \u0438\u043c\u044f_\u0444\u0430\u0439\u043b\u0430_\u0434\u0430\u043c\u043f\u0430.sql \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: mysqldump -uroot -p123456 database > database.sql \u0427\u0442\u043e\u0431\u044b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0431\u0430\u0437\u044b, \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u043c\u0435\u043d\u0438 \u0431\u0430\u0437\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c -A. \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 DROP TABLE \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c CREATE TABLE, \u043b\u0443\u0447\u0448\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043c\u043f \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c &#8212;add-drop-table: mysqldump &#8212;add-drop-table -uroot -p123456 database > database.sql \u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043c\u043f \u0431\u0430\u0437\u044b MySQL mysql [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[26,114,1],"tags":[589,118,8,49,44,23,536,22,535],"class_list":["post-896","post","type-post","status-publish","format-standard","hentry","category-linux","category-windows-2","category-main","tag-linux","tag-mysql","tag-windows","tag-49","tag-44","tag-23","tag-536","tag-22","tag-535"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2HrGV-es","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/posts\/896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saradmin.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=896"}],"version-history":[{"count":9,"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/posts\/896\/revisions"}],"predecessor-version":[{"id":905,"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/posts\/896\/revisions\/905"}],"wp:attachment":[{"href":"https:\/\/saradmin.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saradmin.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saradmin.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}