{"id":7334,"date":"2022-04-02T19:51:58","date_gmt":"2022-04-02T10:51:58","guid":{"rendered":"https:\/\/www.auctionpro.co.kr\/?p=7334"},"modified":"2026-07-04T19:18:40","modified_gmt":"2026-07-04T10:18:40","slug":"mysql-%eb%94%94%eb%b9%84-%eb%b0%b1%ec%97%85-%eb%b0%8f-%eb%b3%b5%ec%9b%90","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=7334","title":{"rendered":"MySQL \ub514\ube44 \ubc31\uc5c5 \ubc0f \ubcf5\uc6d0"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\ubc31\uc5c5 : root \uad8c\ud55c\uc73c\ub85c \ubc31\uc5c5<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">mysqldump -u root -p developer &gt; developer_01.sql<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\ubcf5\uc6d0 : root \uad8c\ud55c\uc73c\ub85c \ubcf5\uc6d0<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">mysql -u root -p developer &lt; developer_01.sql<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\ud2b9\uc815 table \uc81c\uc678 \ubc31\uc5c5<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">mysqldump -u root -p \\\n--databases $(\nmysql -u root -p -N -e \"SHOW DATABASES;\" \\\n| grep -Ev \"^(auctionpro|ihavenomoney|sys)$\"\n) &gt; db.sql<\/pre><\/div>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" title=\"\uc815\uc0c1\uc644\ub8cc\" >\/\/ \uc544\ub798\uc624\ub958\ub294 \uc815\uc0c1 \uc644\ub8cc.\nmysqldump: Dumping 'information_schema' DB content is not supported\n\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\ub610\ub294 <\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">DBS=$(mysql -u root -p -N -e \"SHOW DATABASES;\" | grep -Ev \"^(auctionpro|ihavenomoney|sys)$\")\n\nmysqldump -u root -p --databases $DBS &gt; db.sql<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\uc2a4\ucf00\uc974 \uac78\uae30 : sql.sh \ud30c\uc77c\uc744 \ub9cc\ub4e4\uc5b4 crontab \uc5d0 \uc138\ud305<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">#!\/bin\/bash\nd=$(\/bin\/date +\"%Y%m%d\")\n\/usr\/local\/mysql\/bin\/mysqldump -uroot -p\ud328\uc2a4\uc6cc\ub4dc \ub514\ube44\uba85 &gt; \/backup-sql\/\ub514\ube44\ubc31\uc5c5\ud30c\uc77c\uba85.sql\ncp -Ruf \/usr\/local\/mysql\/data\/db_young \/backup-sql\/\ntar cvfpz \/backup-sql\/$d.young_sql.tar.gz \/backup-sql\/*\nmv \/backup-sql\/$d.young_sql.tar.gz \/backup-full\/<\/pre><\/div>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">crontab -e\n \n3 2 * * * \/sql.sh<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\ub4f1\ub85d \ub0b4\uc6a9 \uc124\uc815<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\ubd84,\uc2dc,\uc77c,\uc6d4,\uc694\uc77c, \uc2e4\ud589\uba85\ub839 \uc21c\uc73c\ub85c \uc124\uc815<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">crontab \ud30c\uc77c \ud615\uc2dd<br>\u2014\u2014 \u2014\u2014\u2013 \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br>\ud544 \ub4dc \uc758 \ubbf8 \ubc94 \uc704<br>\u2014\u2014 \u2014\u2014\u2013 \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br>\uccab\ubc88\uc9f8 \ubd84 0-59<br>\ub450\ubc88\uc9f8 \uc2dc 0-23<br>\uc138\ubc88\uc9f8 \uc77c 0-31<br>\ub124\ubc88\uc9f8 \uc6d4 1-12<br>\ub2e4\uc12f\ubc88\uc9f8 \uc694\uc77c 0-7 (0 \ub610\ub294 7=\uc77c\uc694\uc77c, 1=\uc6d4, 2=\ud654,\u2026)<br>\uc5ec\uc12f\ubc88\uc9f8 \uba85\ub839\uc5b4 \uc2e4\ud589\ud560 \uba85\ub839\uc744 \ud55c\uc904\ub85c \uc4f4\ub2e4.<br>\u2014\u2014 \u2014\u2014\u2013 \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>\ubc31\uc5c5 : root \uad8c\ud55c\uc73c\ub85c \ubc31\uc5c5 \ubcf5\uc6d0 : root \uad8c\ud55c\uc73c\ub85c \ubcf5\uc6d0 \ud2b9\uc815 table \uc81c\uc678 \ubc31\uc5c5 \ub610\ub294 \uc2a4\ucf00\uc974 \uac78\uae30 : sql.sh \ud30c\uc77c\uc744 \ub9cc\ub4e4\uc5b4 crontab \uc5d0 \uc138\ud305 \ub4f1\ub85d <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=7334\" title=\"MySQL \ub514\ube44 \ubc31\uc5c5 \ubc0f \ubcf5\uc6d0\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-7334","post","type-post","status-publish","format-standard","hentry","category-centos"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/7334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7334"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/7334\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}