{"id":836,"date":"2011-03-11T00:47:16","date_gmt":"2011-03-10T15:47:16","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=836"},"modified":"2012-02-10T03:02:30","modified_gmt":"2012-02-09T18:02:30","slug":"mysql-%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=836","title":{"rendered":"mySQL \u30b3\u30de\u30f3\u30c9"},"content":{"rendered":"<p>\u826f\u304f\u4f7f\u3046mySQL\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<p>mySQL\u306b\u30e6\u30fc\u30b6 root \u3067MySQL\u306b\u63a5\u7d9a<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql -u root -p<\/pre>\n<\/p>\n<p>database\u3092\u53c2\u7167<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql&gt; show databases;<\/pre>\n<\/p>\n<p>database\u3092\u4f7f\u7528\u958b\u59cb<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql&gt; use DBNAME;<\/pre>\n<\/p>\n<p>table\u3092\u53c2\u7167<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql&gt; show tables;<\/pre>\n<\/p>\n<p>database\u3092\u4f5c\u6210<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql&gt; create database DBNAME;<\/pre>\n<\/p>\n<p>database\u3092\u524a\u9664<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql&gt; drop database DBNAME;<\/pre>\n<\/p>\n<p>table\u3092\u4f5c\u6210<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql&gt; create table table name (\r\n    -&gt;id INT UNSIGNED NOT NULL AUTO_INCREMENT,\r\n    -&gt;name VARCHAR(255) NOT NULL,\r\n    -&gt;password VARCHAR(255) NOT NULL,\r\n    -&gt;email VARCHAR(255) NOT NULL,\r\n    -&gt;PRIMARY KEY(id),\r\n    -&gt;index(name)\r\n    -&gt;);<\/pre>\n<\/p>\n<p>\u30c6\u30fc\u30d6\u30eb\u3092\u53c2\u7167<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql&gt; desc tablename;<\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u826f\u304f\u4f7f\u3046mySQL\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002 mySQL\u306b\u30e6\u30fc\u30b6 root \u3067MySQL\u306b\u63a5\u7d9a mysql -u root -p database\u3092\u53c2\u7167 mysql&gt; show databases; database\u3092\u4f7f\u7528\u958b\u59cb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[107,180,173],"class_list":["post-836","post","type-post","status-publish","format-standard","hentry","category-php","tag-mamp","tag-mysql","tag-php"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/836","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=836"}],"version-history":[{"count":6,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/836\/revisions"}],"predecessor-version":[{"id":2971,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/836\/revisions\/2971"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}