{"id":3183,"date":"2017-09-01T10:33:38","date_gmt":"2017-09-01T01:33:38","guid":{"rendered":"https:\/\/techfun.cc\/?p=3183"},"modified":"2024-12-23T16:38:31","modified_gmt":"2024-12-23T07:38:31","slug":"mac-database-testdata","status":"publish","type":"post","link":"https:\/\/techfun.cc\/database\/mac-database-testdata.html","title":{"rendered":"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u74b0\u5883\u69cb\u7bc9(Mac\u7248) \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u4f5c\u6210"},"content":{"rendered":"<div class=\"first_ja\">\n<div class=\"cmenu\">\n<ol>\n<li><a href=\"https:\/\/techfun.cc\/database\/mac-database-xamppinstall.html\">XAMPP\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n<li><a href=\"https:\/\/techfun.cc\/database\/mac-database-mysql.html\">MariaDB\u306e\u8a2d\u5b9a<\/a><\/li>\n<li>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u4f5c\u6210 <span class=\"astrisk\">\u2605<\/span><\/li>\n<\/ol><\/div>\n<\/div>\n<p>\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f\u3001\u307e\u3060\u4f55\u3082\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\nSQL\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u305f\u308a\u3001\u767b\u9332\u3057\u305f\u308a\u3001\u524a\u9664\u3057\u305f\u308a\u30fb\u30fb\u3068\u3044\u3046\u7df4\u7fd2\u3092\u3059\u308b\u305f\u3081\u306b\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u203b\u767b\u9332\u306f\u4efb\u610f\u3067\u3059\u304c\u3001\u3054\u81ea\u8eab\u3067\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u306e\u3082\u5927\u5909\u3060\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5b66\u7fd2\u3092\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u767b\u9332\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u8a2d\u5b9a\u306b\u5fc5\u8981\u306aSQL\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3092\u3001\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n<span class=\"em\"><a href=\"https:\/\/techfun.cc\/wp-content\/uploads\/2021\/01\/TechFun-Sql.zip\" class=\"Ext\">SQL\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb<\/a><\/span><\/p>\n<p>\u53d6\u5f97\u3057\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u4f5c\u6210\u7528\u306eSQL\u30d5\u30a1\u30a4\u30eb\u300ctechfun.sql\u300d\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u307e\u307e\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 (Downloads) \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u3066\u3001\u8a71\u3092\u9032\u3081\u307e\u3059\u3002<\/p>\n<p>MariaDB\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u72b6\u614b\u3067\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066MariaDB\u304b\u3089\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"Copy prettyprint lang-js\"><code>exit<\/code><\/pre>\n<p>\u6b21\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001techfun\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"Copy prettyprint lang-js\"><code>.\/mysql -u root techfun &lt; \/Users\/techfun\/Downloads\/TechFun-Sql\/techfun.sql<\/code><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u969b\u3001\u753b\u9762\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306a\u3069\u304c\u8868\u793a\u3055\u308c\u306a\u3051\u308c\u3070\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u767b\u9332\u306f\u5b8c\u4e86\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u767b\u9332\u3055\u308c\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\nMariaDB\u3092\u4f7f\u7528\u3059\u308b\u3068\u304d\u306b\u306f\u5fc5\u305a\u3001\u3069\u306e\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u300d\u3092\u4f7f\u7528\u3059\u308b\u306e\u304b\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u81ea\u5206\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u30bf\u30fc\u30df\u30ca\u30eb\u3067MariaDB\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"Copy prettyprint lang-js\"><code>use \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d;<\/code><\/pre>\n<p>\u4eca\u56de\u306f\u300ctechfun\u300d\u3068\u3044\u3046\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3057\u305f\u3044\u306e\u3067\u3001\u30b3\u30de\u30f3\u30c9\u306f\u300cuse techfun;\u300d\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u5b9f\u884c\u3057\u3066\u3001\u300cDatabase changed\u300d\u3068\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u6b63\u5e38\u306b\u9078\u629e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3057\u305f\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4f5c\u6210\u3055\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"Copy prettyprint lang-js\"><code>show tables;<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u540d\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u767b\u9332\u6642\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u4f5c\u6210\u306f\u554f\u984c\u306a\u304f\u5b8c\u4e86\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/techfun.cc\/wp-content\/uploads\/2024\/12\/mac-testdata1.png\" class=\"Ext\"><img decoding=\"async\" src=\"https:\/\/techfun.cc\/wp-content\/uploads\/2024\/12\/mac-testdata1.png\" \/><\/a><\/p>\n<p>\u3055\u3089\u306b\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"Copy prettyprint lang-js\"><code>SELECT * FROM \u30c6\u30fc\u30d6\u30eb\u540d;<\/code><\/pre>\n<p>\u300c\u30c6\u30fc\u30d6\u30eb\u540d\u300d\u306b\u306f\u4e0a\u8a18\u306eshow tables\u3092\u5b9f\u884c\u3057\u305f\u969b\u306b\u8868\u793a\u3055\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u540d\u306e\u3046\u3061\u3001\u4e2d\u8eab\u3092\u78ba\u8a8d\u3057\u305f\u3044\u30c6\u30fc\u30d6\u30eb\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3068\u3057\u3066\u3001\u300cSELECT * FROM product;\u300d\u3092\u5b9f\u884c\u3057\u3066\u3001product\u30c6\u30fc\u30d6\u30eb\u306e\u4e2d\u8eab\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u3001\u6587\u5b57\u5316\u3051\u304c\u306a\u304f\u3001\u6b63\u3057\u304f\u30c6\u30fc\u30d6\u30eb\u306e\u4e2d\u8eab\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u767b\u9332\u306f\u554f\u984c\u306a\u304f\u5b8c\u4e86\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/techfun.cc\/wp-content\/uploads\/2024\/12\/mac-testdata2.png\" class=\"Ext\"><img decoding=\"async\" src=\"https:\/\/techfun.cc\/wp-content\/uploads\/2024\/12\/mac-testdata2.png\" \/><\/a><\/p>\n<p>\u4ee5\u4e0a\u3067\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u4f5c\u6210\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>XAMPP\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb MariaDB\u306e\u8a2d\u5b9a \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u4f5c\u6210 \u2605 \u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f\u3001\u307e\u3060\u4f55\u3082\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3002 SQL\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u305f\u308a\u3001\u767b\u9332\u3057\u305f\u308a\u3001\u524a\u9664\u3057\u305f\u308a\u30fb\u30fb\u3068\u3044\u3046\u7df4\u7fd2\u3092\u3059\u308b\u305f\u3081\u306b\u3001\u30c6\u2026<\/p>\n","protected":false},"author":5,"featured_media":3841,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"class_list":["post-3183","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts\/3183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/comments?post=3183"}],"version-history":[{"count":5,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts\/3183\/revisions"}],"predecessor-version":[{"id":6358,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts\/3183\/revisions\/6358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/media\/3841"}],"wp:attachment":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/media?parent=3183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/categories?post=3183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}