{"id":2109,"date":"2013-02-27T11:28:48","date_gmt":"2013-02-27T02:28:48","guid":{"rendered":"http:\/\/auctionpro.co.kr\/?p=2109"},"modified":"2013-10-02T14:22:23","modified_gmt":"2013-10-02T05:22:23","slug":"mysql-%ec%a0%91%ec%86%8d-%ec%84%b8%ed%8c%85","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=2109","title":{"rendered":"mysql  \uc811\uc18d \uc138\ud305"},"content":{"rendered":"<p>\ud658\uacbd <\/p>\n<p>OS : Ubuntu \/ CentOS<br \/>\nMYSQL : 5.6 version<\/p>\n<p>\ud2b9\uc815 \uc0ac\uc6a9\uc790 \uacc4\uc815\uc758 \uc678\ubd80\uc811\uc18d \ud5c8\uc6a9\ud558\uae30 &#8211; \uc5ec\uae30\uc11c\ub294 root \ub97c \uc608\ub85c \ub4e0\ub2e4. <\/p>\n<p>1. mysql \uc811\uc18d \ud6c4 mysql database \uc120\ud0dd<br \/>\nmysql> use mysql;<\/p>\n<p>2. user \ud14c\uc774\ube14 \uc0b4\ud3b4\ubcf4\uae30<br \/>\nmysql> select host, user, password from user;<\/p>\n<p>root \uc758 host \uac12\ub4e4\uc740 localhost, 127.0.0.1 \ub4f1\uc73c\ub85c \uae30\ubcf8 \ub4f1\ub85d\uc5d0<br \/>\n% \ub610\ub294 IP \ucd94\uac00<\/p>\n<p>3. \uad8c\ud55c \uc124\uc815<br \/>\nmysql -u root -p \ub85c \ub4e4\uc5b4\uac00\uc11c<\/p>\n<p>mysql> grant all privileges on *.* to &#8216;root&#8217;@&#8217;%&#8217; identified by &#8216;root\uc758 \ud328\uc2a4\uc6cc\ub4dc&#8217;;<br \/>\nQuery OK, 0 rows affected (0.03 sec)<\/p>\n<p>4. \ub4f1\ub85d\ud655\uc778\ud558\uae30<br \/>\nmysql> select host, user, password from user;<\/p>\n<p>root \uacc4\uc815\uc758 host \ud544\ub4dc\uc5d0 % \uac00 \ub4f1\ub85d\ub418\uc5c8\ub294\uc9c0 \ud655\uc778\ud55c\ub2e4. <\/p>\n<p>5. refrash<br \/>\nmysql> flush privileges;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<\/p>\n<p>\uc704 \ub2e8\uacc4\ub294 my.cnf \ud30c\uc77c \uc218\uc815\ud6c4 \uc11c\ubc84\ub97c \uc7ac\uc2dc\uc791\ud560 \uac83\uc774\uae30 \ub54c\ubb38\uc5d0 \uad73\uc774 \uc548\ud574\ub3c4 \ub41c\ub2e4. <\/p>\n<p>6. my.cnf \uc5d0\uc11c \uc678\ubd80\uc811\uc18d \uad00\ub828\uc0ac\ud56d \ubcc0\uacbd\ud558\uae30<br \/>\nuser@home:~$ sudo vim \/etc\/mysql\/my.cnf <\/p>\n<p>\ud30c\uc77c \ub0b4\uc6a9\uc911<br \/>\n#bind-address = 127.0.0.1<br \/>\n\ubd80\ubd84 \uc8fc\uc11d\ucc98\ub9ac\ud6c4 \uc800\uc7a5\ud558\uae30 <\/p>\n<p>7. mysql \uc7ac\uc2dc\uc791<br \/>\nuser@home:~$ sudo \/etc\/init.d\/mysql restart <\/p>\n<p>8. \uc644\ub8cc. <\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>\ud658\uacbd OS : Ubuntu \/ CentOS MYSQL : 5.6 version \ud2b9\uc815 \uc0ac\uc6a9\uc790 \uacc4\uc815\uc758 \uc678\ubd80\uc811\uc18d \ud5c8\uc6a9\ud558\uae30 &#8211; \uc5ec\uae30\uc11c\ub294 root \ub97c \uc608\ub85c \ub4e0\ub2e4. 1. mysql \uc811\uc18d \ud6c4 <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=2109\" title=\"mysql  \uc811\uc18d \uc138\ud305\">[&#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":[6],"tags":[],"class_list":["post-2109","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2109","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=2109"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2109\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}