{"id":47,"date":"2025-09-23T22:35:22","date_gmt":"2025-09-23T13:35:22","guid":{"rendered":"https:\/\/www.shuphy.com\/blog\/?p=47"},"modified":"2025-10-06T01:31:52","modified_gmt":"2025-10-05T16:31:52","slug":"wordpress-%e3%81%ae-siteurl-%e3%81%aa%e3%81%a9%e3%82%92%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%81%8b%e3%82%89%e7%9b%b4%e6%8e%a5%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.shuphy.com\/?p=47","title":{"rendered":"WordPress \u306e siteurl \u306a\u3069\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u76f4\u63a5\u5909\u66f4\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3057\u3066\u3044\u305f\u3089 home, siteurl \u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044\u305b\u3044\u3067\u6295\u7a3f\u3067\u304d\u306a\u3044\u306a\u3069\u8272\u3005\u4e0d\u5177\u5408\u304c\u3067\u305f\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u90e8\u5206\u306f\u9069\u5b9c\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc: wpuser<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d: wordpress<\/li>\n\n\n\n<li>\u5909\u66f4\u5f8c\u30a2\u30c9\u30ec\u30b9: <a href=\"https:\/\/www.shuphy.com\/blog\">https:\/\/www.shuphy.com\/blog<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u5165\u308a\u65b9\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>mysql -u wpuser -p<\/p>\n<\/blockquote>\n\n\n\n<p>\u8a2d\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\uff08wp-conf.php\u306b\u66f8\u3044\u305f\u3082\u306e\uff09\u3067\u30ed\u30b0\u30a4\u30f3\u3002<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">MariaDB &#91;(none)]&gt; <span class=\"hljs-keyword\">USE<\/span> wordpress;\n\nMariaDB &#91;wordpress]&gt; <span class=\"hljs-keyword\">SELECT<\/span> * <span class=\"hljs-keyword\">FROM<\/span> wp_options <span class=\"hljs-keyword\">WHERE<\/span> option_name <span class=\"hljs-keyword\">IN<\/span> (<span class=\"hljs-string\">'home'<\/span>, <span class=\"hljs-string\">'siteurl'<\/span>);\n\n\uff08\u53e4\u3044\u30a2\u30c9\u30ec\u30b9\u304c\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3002\uff09\n\nMariaDB &#91;wordpress]&gt; <span class=\"hljs-keyword\">UPDATE<\/span> wp_options <span class=\"hljs-keyword\">SET<\/span> option_value = <span class=\"hljs-string\">'https:\/\/www.shuphy.com\/blog'<\/span> <span class=\"hljs-keyword\">WHERE<\/span> option_name <span class=\"hljs-keyword\">IN<\/span> (<span class=\"hljs-string\">'home'<\/span>, <span class=\"hljs-string\">'siteurl'<\/span>);<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3057\u3066\u3044\u305f\u3089 home, siteurl \u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044\u305b\u3044\u3067\u6295\u7a3f\u3067\u304d\u306a\u3044\u306a\u3069\u8272\u3005\u4e0d\u5177\u5408\u304c\u3067\u305f\u3002 \u6b21\u306e\u90e8\u5206\u306f\u9069\u5b9c\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u5165\u308a\u65b9\u3002 mysql -u wpuser -p&#8230;<\/p>\n","protected":false},"author":1,"featured_media":228,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[4],"tags":[5],"class_list":["post-47","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pc","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47"}],"version-history":[{"count":5,"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions\/88"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=\/wp\/v2\/media\/228"}],"wp:attachment":[{"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.shuphy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}