{"id":4697,"date":"2013-09-07T04:55:16","date_gmt":"2013-09-06T19:55:16","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=4697"},"modified":"2013-09-07T04:57:57","modified_gmt":"2013-09-06T19:57:57","slug":"virtualbox%e3%81%a8vagrant%e3%81%a7%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e3%82%92%e6%a7%8b%e7%af%89-%e3%81%9d%e3%81%ae2-php-mysql%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=4697","title":{"rendered":"VirtualBox\u3068Vagrant\u3067\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9 \u305d\u306e2 PHP + MySQL\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/db880d33d9d78bad530c5f80f20d0b35.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/db880d33d9d78bad530c5f80f20d0b35.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-08-29 4.57.43\" width=\"495\" height=\"374\" class=\"alignnone size-full wp-image-4641\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/db880d33d9d78bad530c5f80f20d0b35.png 495w, https:\/\/www.webcyou.com\/wp-content\/uploads\/db880d33d9d78bad530c5f80f20d0b35-300x226.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/a><\/p>\n<p>\u524d\u56de\u306e<\/p>\n<h3><a href=\"https:\/\/www.webcyou.com\/?p=4632\">VirtualBox\u3068Vagrant\u3067\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9<\/a><\/h3>\n<p>\u306e\u7d9a\u304d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fgit\u3001vim\u3001PHP\u3001MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u524d\u56de\u3001\u30b5\u30e9\u3063\u3068\u66f8\u3044\u305f\u306e\u3067\u3059\u304c\u3001PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u3002<\/p>\n<h4>Vagrant + CentOS PHP\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>\u4f55\u306f\u3068\u3082\u3042\u308c\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">vagrant up<\/pre>\n<p>\u3067vargrant\u3092\u8d77\u3061\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u306fVagrantfile\u306e\u3042\u308b\u5834\u6240\u304b\u3089\u3002<\/p>\n<p>vagrant\u304c\u7acb\u3061\u4e0a\u304c\u308a\u307e\u3057\u305f\u3089ssh\u3067\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo yum -y install php<\/pre>\n<p>\u3053\u3061\u3089\u306eyum\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<h4>Vagrant + git\u00a0vim\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>\u7d9a\u3051\u3066\u3001\/home\/vagrant\u306b\u00a0yum\u30b3\u30de\u30f3\u30c9\u3067git vim\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u524d\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3002\u5c11\u3005\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo yum -y update<\/pre>\n<p><strong>git<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo yum -y install vim git<\/pre>\n<p>\u3067git\u3068 vim\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">git --version<\/pre>\n<p>\u3067<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">git version 1.7.1<\/pre>\n<p>\u7b49\u3068\u8868\u793a\u3059\u308c\u3070ok\u3067\u3059\u3002vim\u3082\u540c\u69d8\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>Vagrant + CentOS MySQL\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>\u6700\u5f8c\u306bMySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>MySQL\u306b\u9650\u3063\u3066\u306f\u4ee5\u4e0b\u306eURL\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u843d\u3068\u3059\u306a\u308a\u3001\u306a\u3093\u306a\u308a\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001<\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u306eVagrantfile\u304c\u3042\u308b\u5834\u6240\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">http:\/\/cdn.mysql.com\/Downloads\/MySQL-5.7\/MySQL-shared-compat-5.7.1_m11-1.linux_glibc2.5.x86_64.rpm\r\nhttp:\/\/cdn.mysql.com\/Downloads\/MySQL-5.6\/MySQL-client-5.6.13-1.linux_glibc2.5.x86_64.rpm\r\nhttp:\/\/cdn.mysql.com\/Downloads\/MySQL-5.6\/MySQL-server-5.6.13-1.linux_glibc2.5.x86_64.rpm<\/pre>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u683c\u7d0d\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3089\u3002<br \/>\nvagrant\u306bssh\u63a5\u7d9a\u3057\u3001\/vagrant \u3078\u79fb\u52d5\u3002<br \/>\n\u5148\u7a0b\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u540c\u671f\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u306e\u3046\u3048\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo yum localinstall MySQL-shared-compat-5.7.1_m11-1.linux_glibc2.5.x86_64.rpm\r\nsudo yum localinstall MySQL-client-5.6.13-1.linux_glibc2.5.x86_64.rpm\r\nsudo yum localinstall MySQL-server-5.6.13-1.linux_glibc2.5.x86_64.rpm\r\n<\/pre>\n<p>\u8272\u3005\u3068\u30ed\u30b0\u304c\u8868\u793a\u3057\u3001y\/n \u307f\u305f\u3044\u306b\u805e\u304b\u308c\u307e\u3059\u306e\u3067\u3001y\u3092\u5165\u529b\u30ea\u30bf\u30fc\u30f3\uff01<\/p>\n<p>\u305d\u308c\u305e\u308c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3089\u3001MySQL\u3092\u30b9\u30bf\u30fc\u30c8\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo service mysql start<\/pre>\n<p>\u521d\u671f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo cat \/root\/.mysql_secret<\/pre>\n<p>\u5165\u529b\u3002\u3059\u308b\u3068<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\"># The random password set for the root user at Fri Sep \u00a06 19:22:09 2013 (local time): xxxxxxxx<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u8868\u793a\u3057\u307e\u3059\u3002xxxxxxxx \u304c\u521d\u671f\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql -u root -p<\/pre>\n<p>\u3067\u30ed\u30b0\u30a4\u30f3\u3002\u5148\u7a0b\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3002\u30ea\u30bf\u30fc\u30f3\u3002<\/p>\n<p>\u65e9\u901f\u3001\u521d\u671f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql &gt; SET PASSWORD FOR root@localhost=PASSWORD('NEWPASSWORD');<\/pre>\n<p>NEWPASSWORD\u90e8\u5206\u3092\u4efb\u610f\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u5909\u66f4\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql&gt; FLUSH PRIVILEGES;<\/pre>\n<p>\u6700\u5f8c\u306f\u4e0a\u8a18\u306esql\u6587\u3067\u53cd\u6620\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u306b\u306a\u308a\u307e\u3059\u30fc\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306e VirtualBox\u3068Vagrant\u3067\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9 \u306e\u7d9a\u304d\u3068\u306a\u308a\u307e\u3059\u3002 \u4eca\u56de\u306fgit\u3001vim\u3001PHP\u3001MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u524d\u56de\u3001\u30b5\u30e9\u3063\u3068\u66f8\u3044\u305f\u306e\u3067\u3059\u304c\u3001PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u3002 Vagra [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[171,59,176,169,107,180,173,120,58,178,78,114,118],"class_list":["post-4697","post","type-post","status-publish","format-standard","hentry","category-tool","tag-android","tag-android-sdk","tag-html5","tag-mac","tag-mamp","tag-mysql","tag-php","tag-sass","tag-sdk","tag-178","tag-78","tag-114","tag-118"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/4697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4697"}],"version-history":[{"count":4,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/4697\/revisions"}],"predecessor-version":[{"id":4701,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/4697\/revisions\/4701"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}