{"id":3096,"date":"2023-02-27T19:10:01","date_gmt":"2023-02-27T10:10:01","guid":{"rendered":"https:\/\/zeoninc.com\/blog\/?p=3096"},"modified":"2024-11-19T15:13:31","modified_gmt":"2024-11-19T06:13:31","slug":"february2","status":"publish","type":"post","link":"https:\/\/zeoninc.com\/blog\/2023\/02\/27\/february2\/","title":{"rendered":"mysql\u306e\u304a\u306f\u306a\u3057"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"694\" src=\"https:\/\/zeoninc.com\/blog\/wp-content\/uploads\/2023\/02\/network_dennou_sekai_figure.png\" alt=\"\" class=\"wp-image-3097\" srcset=\"https:\/\/zeoninc.com\/blog\/wp-content\/uploads\/2023\/02\/network_dennou_sekai_figure.png 800w, https:\/\/zeoninc.com\/blog\/wp-content\/uploads\/2023\/02\/network_dennou_sekai_figure-461x400.png 461w, https:\/\/zeoninc.com\/blog\/wp-content\/uploads\/2023\/02\/network_dennou_sekai_figure-768x666.png 768w, https:\/\/zeoninc.com\/blog\/wp-content\/uploads\/2023\/02\/network_dennou_sekai_figure-247x214.png 247w, https:\/\/zeoninc.com\/blog\/wp-content\/uploads\/2023\/02\/network_dennou_sekai_figure-182x158.png 182w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u3053\u3093\u306b\u3061\u306f\uff01\u958b\u767a\u90e8\u306eAH\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307f\u306a\u3055\u3093\u306fmysql\u306espider\u30a8\u30f3\u30b8\u30f3\u3068\u8a00\u3046\u3082\u306e\u3092\u3054\u5b58\u3058\u3067\u3059\u304b\uff1f<\/p>\n\n\n\n<p>mysql\u3068\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e00\u7a2e\u3067\u3059\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3092\u3069\u3046\u305e<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-zeon\u793e\u54e1blog wp-block-embed-zeon\u793e\u54e1blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"o3LteWWHsf\"><a href=\"https:\/\/zeoninc.com\/blog\/2022\/10\/05\/october1\/\">\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068SQL\u306e\u57fa\u672c<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068SQL\u306e\u57fa\u672c&#8221; &#8212; ZEON\u793e\u54e1BLOG\" src=\"https:\/\/zeoninc.com\/blog\/2022\/10\/05\/october1\/embed\/#?secret=3ZabRDuPbZ#?secret=o3LteWWHsf\" data-secret=\"o3LteWWHsf\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>spider\u30a8\u30f3\u30b8\u30f3\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u306f\u3053\u3061\u3089<\/p>\n\n\n\n<p><a href=\"http:\/\/spiderformysql.com\/\">http:\/\/spiderformysql.com\/<\/a><\/p>\n\n\n\n<p>\u901a\u5e38\u306eInnoDB\u30a8\u30f3\u30b8\u30f3\u3067\u3059\u30681\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u305d\u306eDB\u306e\u30c7\u30fc\u30bf\u304c\u5168\u3066\u5165\u3063\u3066\u3044\u307e\u3059\u304c\u3001<\/p>\n\n\n\n<p>spider\u30a8\u30f3\u30b8\u30f3\u3067\u306f\u3001spider\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u8907\u6570\u306e\u30c7\u30fc\u30bf\u7528\u30b5\u30fc\u30d0\u30fc\u306b\u30c7\u30fc\u30bf\u3092\u5206\u6563\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff08mysqld_multi\u3092\u4f7f\u3048\u30701\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u5185\u3067\u5b8c\u7d50\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\uff09<\/p>\n\n\n\n<p>\u901a\u5e38\u306f\u5404\u30c7\u30fc\u30bf\u7528\u30b5\u30fc\u30d0\u30fc\u306b\u5206\u6563\u3057\u305f\u30c7\u30fc\u30bf\u3092spider\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u4f5c\u3063\u305f\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u3042\u305f\u304b\u3082\u4e00\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u304b\u306e\u3088\u3046\u306b\u6271\u3046\u3053\u3068\u304c\u30e1\u30a4\u30f3\u306e\u4f7f\u3044\u65b9\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u305d\u308c\u3092\u5fdc\u7528\u3057\u5225\u30b5\u30fc\u30d0\u30fc\u306e\u30c6\u30fc\u30d6\u30eb\u3092spider\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30c6\u30fc\u30d6\u30eb\u304b\u306e\u3088\u3046\u306b\u6271\u3046\u65b9\u6cd5\u3092\u5fd8\u5099\u9332\u3092\u517c\u306d\u3066\u66f8\u3044\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>192.168.0.1\u30b5\u30fc\u30d0\u30fc\u306b<\/p>\n\n\n\n<p>database:test<\/p>\n\n\n\n<p>\u30c6\u30fc\u30d6\u30eb:dt_test<\/p>\n\n\n\n<p>CREATE TABLE dt_test<\/p>\n\n\n\n<p>(<\/p>\n\n\n\n<p>&nbsp; &nbsp; id INT AUTO_INCREMENT NOT NULL,<\/p>\n\n\n\n<p>&nbsp; &nbsp; name VARCHAR(255) NOT NULL,<\/p>\n\n\n\n<p>&nbsp; &nbsp; PRIMARY KEY (id)<\/p>\n\n\n\n<p>) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4<em>;<\/em><\/p>\n\n\n\n<p>\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>spider\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u306bspider\u30a8\u30f3\u30b8\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057<\/p>\n\n\n\n<p>CREATE SERVER data1 FOREIGN DATA WRAPPER mysql OPTIONS (HOST &#8216;192.168.0.1&#8217;, DATABASE &#8216;test&#8217;, USER &#8221;, PASSWORD &#8221;, PORT 3306)<em>;<\/em><\/p>\n\n\n\n<p>\u3067192.168.0.1\u3078\u306e\u63a5\u7d9a\u8a2d\u5b9a\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>SERVER\u540d\u306f\u4efb\u610f \u3053\u3053\u3067\u306fdata1<\/p>\n\n\n\n<p>USER\u3068PASSWORD\u306fspider\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089192.168.0.1\u306emysql\u3078\u306e\u63a5\u7d9a\u30e6\u30fc\u30b6\u30fc\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>-skip-grant-tables\u306a\u3069\u306b\u3057\u3066\u3042\u308c\u3070USER\u3068PASSWORD\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066spider\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c6\u30fc\u30d6\u30eb\u540d\u306f\u3053\u3053\u3067\u306fdt_test_spider\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>CREATE TABLE dt_test_spider<\/p>\n\n\n\n<p>(<\/p>\n\n\n\n<p>&nbsp; &nbsp; id INT AUTO_INCREMENT NOT NULL,<\/p>\n\n\n\n<p>&nbsp; &nbsp; name VARCHAR(255) NOT NULL,<\/p>\n\n\n\n<p>&nbsp; &nbsp; PRIMARY KEY (id)<\/p>\n\n\n\n<p>) ENGINE = SPIDER DEFAULT CHARSET=utf8mb4<\/p>\n\n\n\n<p>&nbsp;comment=&#8217;server &#8220;data1&#8221;, table &#8220;dt_test&#8221;&#8216;<em>;<\/em><\/p>\n\n\n\n<p>comment\u5185\u3067CREATE SERVER\u3067\u4f5c\u3063\u305fdata1\u3068192.168.0.1\u5185\u306e\u30c6\u30fc\u30d6\u30eb\u540d:dt_test\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3060\u3051\u3067\u3001spider\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u4f5c\u3063\u305f\u30c6\u30fc\u30d6\u30ebdt_test_spider\u304b\u3089192.168.0.1\u5185\u306e\u30c6\u30fc\u30d6\u30ebdt_test\u306e\u4e2d\u8eab\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>spider\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u5225\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u9069\u5f53\u306b\u4f5c\u3063\u3066dt_test_spider\u3068join\u3059\u308b\u3068\u5b9f\u4f53\u304c\u5225\u30b5\u30fc\u30d0\u30fc\u306b\u3042\u308b\u3068\u306f\u601d\u3048\u306a\u3044\u307b\u3069\u8efd\u5feb\u306bjoin\u51fa\u6765\u305f\u308a\u3001<\/p>\n\n\n\n<p>spider\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u306bdt_test\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u308a\u3001dt_test_spider\u304b\u3089insert\u3057\u3066\u3084\u308c\u3070\u3044\u3061\u3044\u3061mysqldump\u3067\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u3066dump\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u3082\u306a\u304f\u30c6\u30fc\u30d6\u30eb\u306e\u30b3\u30d4\u30fc\u3082\u51fa\u6765\u305f\u308a\u306a\u3069\u304b\u306a\u308a\u4fbf\u5229\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>spider\u30a8\u30f3\u30b8\u30f3\u306f\u6c34\u5e73\u5206\u6563\u306b\u5bfe\u5fdc\u3057\u305f\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u3067\u3059\u304c\u3001\u540c\u3058\u4f5c\u8005\u304b\u3089VP\u30a8\u30f3\u30b8\u30f3\u3068\u3044\u3046\u5782\u76f4\u5206\u5272\u306b\u5bfe\u5fdc\u3057\u305f\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u3082\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u305d\u3061\u3089\u3082\u8abf\u3079\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p>\u6587\uff1a\u958b\u767a\u90e8AH<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u958b\u767a\u90e8\u306eAH\u3067\u3059\u3002 \u307f\u306a\u3055\u3093\u306fmysql\u306espider\u30a8\u30f3\u30b8\u30f3\u3068\u8a00\u3046\u3082\u306e\u3092\u3054\u5b58\u3058\u3067\u3059\u304b\uff1f mysql\u3068\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e00\u7a2e\u3067\u3059\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3092\u3069\u3046\u305e spider\u30a8\u30f3\u30b8\u30f3\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u306f\u3053\u3061\u3089  [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,8],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/posts\/3096"}],"collection":[{"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/comments?post=3096"}],"version-history":[{"count":9,"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/posts\/3096\/revisions"}],"predecessor-version":[{"id":4608,"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/posts\/3096\/revisions\/4608"}],"wp:attachment":[{"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/media?parent=3096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/categories?post=3096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zeoninc.com\/blog\/wp-json\/wp\/v2\/tags?post=3096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}