{"id":15,"date":"2004-10-08T16:10:30","date_gmt":"2004-10-08T07:10:30","guid":{"rendered":"http:\/\/chinkoclub.s345.xrea.com\/blog.252523.net\/?p=15"},"modified":"2010-07-23T05:46:44","modified_gmt":"2010-07-22T20:46:44","slug":"mysql_command","status":"publish","type":"post","link":"http:\/\/252523.net\/blog\/archives\/mysql_command","title":{"rendered":"MySQL\u30b3\u30de\u30f3\u30c9 (DOS\u30d7\u30ed\u30f3\u30d7\u30c8) \u5165\u529b\u7de8"},"content":{"rendered":"<p>\n<ul>\n    <li>\u30e6\u30fc\u30b6\u30fc\u540d \u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3002<br \/><code>&gt; -u \u30e6\u30fc\u30b6\u30fc\u540d -p<\/code><\/li>\n\n    <li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/><code>&gt; create database DB\u540d;<\/code><\/li>\n\n    <li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3002<br \/><code>&gt; show databases;<\/code><\/li>\n\n    <li>\u666e\u6bb5\u64cd\u4f5c\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/><code>&gt; grant select,insert,delete,update,create,drop,file,alter,index on *.* to \u30e6\u30fc\u30b6\u30fc\u540d identified by '\u30d1\u30b9\u30ef\u30fc\u30c9'; &gt; flush privileges;<\/code><\/li>\n\n    <li>\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3059\u308b\u3002<br \/><code>&gt; use DB\u540d;<\/code><\/li>\n\n    <li>\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/><code>&gt; create table \u30c6\u30fc\u30d6\u30eb\u540d(<br \/>-&gt; id int(10),<br \/>-&gt; title text,<br \/>-&gt; \u30d5\u30a3\u30fc\u30eb\u30c9\u540d \u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30bf\u30a4\u30d7,<br \/>-&gt; );<\/code><\/li>\n\n    <li>\u30c7\u30fc\u30bf\u306e\u633f\u5165\u3002<br \/><code>&gt; insert into \u30c6\u30fc\u30d6\u30eb\u540d<br \/>-&gt; (id,title,field1,field2,)<br \/>-&gt; VALUES('15','\u3046\u3069\u3093','\u8981\u7d201','\u8981\u7d202');<\/code><\/li>\n\n    <li>\u30d5\u30a1\u30a4\u30eb\u306e\u30a4\u30f3\u30dd\u30fc\u30c8<br \/><code>&gt; load data infile 'C:\/CVS\u30c7\u30fc\u30bf\u306a\u3069.txt'<br \/>-&gt; into table \u30c6\u30fc\u30d6\u30eb\u540d;<\/code><\/li>\n\n\n\n<\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e6\u30fc\u30b6\u30fc\u540d \u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3002&gt; -u \u30e6\u30fc\u30b6\u30fc\u540d -p \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3002&gt; create database DB\u540d; \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3002&gt; show databases; \u666e\u6bb5\u64cd\u4f5c\u3059\u308b\u30e6\u30fc [&#8230;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-languages"],"_links":{"self":[{"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":2,"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":364,"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions\/364"}],"wp:attachment":[{"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/252523.net\/blog\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}