{"id":68,"date":"2020-05-27T17:45:01","date_gmt":"2020-05-27T08:45:01","guid":{"rendered":"https:\/\/speedloger.com\/?p=68"},"modified":"2020-05-27T20:34:14","modified_gmt":"2020-05-27T11:34:14","slug":"azure-app-service%e3%81%aemysql-in-app%e3%82%92wordpress%e3%81%8b%e3%82%89%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/speedloger.com\/?p=68","title":{"rendered":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046"},"content":{"rendered":"<p>AppService\u5074\u3067\u8a2d\u5b9a\u3057\u305f\u5024\u3067\u30a2\u30af\u30bb\u30b9<\/p>\n<h1>wp-config.php\u3092\u66f8\u304d\u63db\u3048<\/h1>\n<pre><code>&lt;?php\nif(!isset($_SERVER[&quot;MYSQLCONNSTR_localdb&quot;])) throw new Exception(&#039;MYSQLCONNSTR ENV is not defined&#039;);\n\n$azure_mysql_connstr = $_SERVER[&quot;MYSQLCONNSTR_localdb&quot;];\n$azure_mysql_connstr_match = preg_match(\n  &quot;\/&quot;.\n    &quot;Database=(?&lt;database&gt;.+);&quot;.\n    &quot;Data Source=(?&lt;datasource&gt;.+):&quot;.\n    &quot;(?&lt;port&gt;.+);&quot;.\n    &quot;User Id=(?&lt;userid&gt;.+);&quot;.\n    &quot;Password=(?&lt;password&gt;.+)&quot;.\n  &quot;\/u&quot;,\n  $azure_mysql_connstr,\n  $_);\n\nif($azure_mysql_connstr_match === false) throw new Exception(&#039;Could not parse for MYSQLCONNSTR ENV&#039;);\n\n$db_settings = [\n    &#039;host&#039;      =&gt; $_[&#039;datasource&#039;],\n    &#039;port&#039;      =&gt; $_[&#039;port&#039;],\n    &#039;database&#039;  =&gt; $_[&#039;database&#039;],\n    &#039;username&#039;  =&gt; $_[&#039;userid&#039;],\n    &#039;password&#039;  =&gt; $_[&#039;password&#039;],\n];\n\nvar_dump($db_settings);\n?&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>AppService\u5074\u3067\u8a2d\u5b9a\u3057\u305f\u5024\u3067\u30a2\u30af\u30bb\u30b9 wp-config.php\u3092\u66f8\u304d\u63db\u3048 &lt;?php if(!isset($_SERVER[&quot;MYSQLCONNSTR_localdb&quot;])) thro&#8230; &raquo; <a class=\"read-more-link\" href=\"https:\/\/speedloger.com\/?p=68\">read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":""},"categories":[7,6],"tags":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/speedloger.com\/?p=68\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Speedloger | \u30e1\u30e2\u66f8\u304d\u3001\u8d70\u308a\u66f8\u304d\u3001\u8208\u5473\u306e\u3042\u308b\u3053\u3068\u3001\u3084\u3063\u305f\u3053\u3068\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046 | Speedloger\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/speedloger.com\/?p=68\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-27T08:45:01+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-27T11:34:14+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046 | Speedloger\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?p=68#article\",\"name\":\"Azure App Service\\u306eMySQL in App\\u3092WordPress\\u304b\\u3089\\u4f7f\\u3046 | Speedloger\",\"headline\":\"Azure App Service\\u306eMySQL in App\\u3092WordPress\\u304b\\u3089\\u4f7f\\u3046\",\"author\":{\"@id\":\"https:\\\/\\\/speedloger.com\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/speedloger.com\\\/#organization\"},\"datePublished\":\"2020-05-27T17:45:01+09:00\",\"dateModified\":\"2020-05-27T20:34:14+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/speedloger.com\\\/?p=68#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/speedloger.com\\\/?p=68#webpage\"},\"articleSection\":\"Azure App Service, Wordpress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?p=68#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/speedloger.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?cat=18#listItem\",\"name\":\"Microsoft Azure\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?cat=18#listItem\",\"position\":2,\"name\":\"Microsoft Azure\",\"item\":\"https:\\\/\\\/speedloger.com\\\/?cat=18\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?cat=7#listItem\",\"name\":\"Azure App Service\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?cat=7#listItem\",\"position\":3,\"name\":\"Azure App Service\",\"item\":\"https:\\\/\\\/speedloger.com\\\/?cat=7\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?p=68#listItem\",\"name\":\"Azure App Service\\u306eMySQL in App\\u3092WordPress\\u304b\\u3089\\u4f7f\\u3046\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?cat=18#listItem\",\"name\":\"Microsoft Azure\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?p=68#listItem\",\"position\":4,\"name\":\"Azure App Service\\u306eMySQL in App\\u3092WordPress\\u304b\\u3089\\u4f7f\\u3046\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?cat=7#listItem\",\"name\":\"Azure App Service\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/#organization\",\"name\":\"Speedloger\",\"description\":\"\\u30e1\\u30e2\\u66f8\\u304d\\u3001\\u8d70\\u308a\\u66f8\\u304d\\u3001\\u8208\\u5473\\u306e\\u3042\\u308b\\u3053\\u3068\\u3001\\u3084\\u3063\\u305f\\u3053\\u3068\",\"url\":\"https:\\\/\\\/speedloger.com\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?author=1#author\",\"url\":\"https:\\\/\\\/speedloger.com\\\/?author=1\",\"name\":\"\\u7ba1\\u7406\\u30a2\\u30ab\\u30a6\\u30f3\\u30c8\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/?p=68#webpage\",\"url\":\"https:\\\/\\\/speedloger.com\\\/?p=68\",\"name\":\"Azure App Service\\u306eMySQL in App\\u3092WordPress\\u304b\\u3089\\u4f7f\\u3046 | Speedloger\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/speedloger.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/speedloger.com\\\/?p=68#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/speedloger.com\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/speedloger.com\\\/?author=1#author\"},\"datePublished\":\"2020-05-27T17:45:01+09:00\",\"dateModified\":\"2020-05-27T20:34:14+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/speedloger.com\\\/#website\",\"url\":\"https:\\\/\\\/speedloger.com\\\/\",\"name\":\"Speedloger\",\"description\":\"\\u30e1\\u30e2\\u66f8\\u304d\\u3001\\u8d70\\u308a\\u66f8\\u304d\\u3001\\u8208\\u5473\\u306e\\u3042\\u308b\\u3053\\u3068\\u3001\\u3084\\u3063\\u305f\\u3053\\u3068\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/speedloger.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046 | Speedloger","description":"","canonical_url":"https:\/\/speedloger.com\/?p=68","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/speedloger.com\/?p=68#article","name":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046 | Speedloger","headline":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046","author":{"@id":"https:\/\/speedloger.com\/?author=1#author"},"publisher":{"@id":"https:\/\/speedloger.com\/#organization"},"datePublished":"2020-05-27T17:45:01+09:00","dateModified":"2020-05-27T20:34:14+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/speedloger.com\/?p=68#webpage"},"isPartOf":{"@id":"https:\/\/speedloger.com\/?p=68#webpage"},"articleSection":"Azure App Service, Wordpress"},{"@type":"BreadcrumbList","@id":"https:\/\/speedloger.com\/?p=68#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/speedloger.com#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/speedloger.com","nextItem":{"@type":"ListItem","@id":"https:\/\/speedloger.com\/?cat=18#listItem","name":"Microsoft Azure"}},{"@type":"ListItem","@id":"https:\/\/speedloger.com\/?cat=18#listItem","position":2,"name":"Microsoft Azure","item":"https:\/\/speedloger.com\/?cat=18","nextItem":{"@type":"ListItem","@id":"https:\/\/speedloger.com\/?cat=7#listItem","name":"Azure App Service"},"previousItem":{"@type":"ListItem","@id":"https:\/\/speedloger.com#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/speedloger.com\/?cat=7#listItem","position":3,"name":"Azure App Service","item":"https:\/\/speedloger.com\/?cat=7","nextItem":{"@type":"ListItem","@id":"https:\/\/speedloger.com\/?p=68#listItem","name":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046"},"previousItem":{"@type":"ListItem","@id":"https:\/\/speedloger.com\/?cat=18#listItem","name":"Microsoft Azure"}},{"@type":"ListItem","@id":"https:\/\/speedloger.com\/?p=68#listItem","position":4,"name":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046","previousItem":{"@type":"ListItem","@id":"https:\/\/speedloger.com\/?cat=7#listItem","name":"Azure App Service"}}]},{"@type":"Organization","@id":"https:\/\/speedloger.com\/#organization","name":"Speedloger","description":"\u30e1\u30e2\u66f8\u304d\u3001\u8d70\u308a\u66f8\u304d\u3001\u8208\u5473\u306e\u3042\u308b\u3053\u3068\u3001\u3084\u3063\u305f\u3053\u3068","url":"https:\/\/speedloger.com\/"},{"@type":"Person","@id":"https:\/\/speedloger.com\/?author=1#author","url":"https:\/\/speedloger.com\/?author=1","name":"\u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8"},{"@type":"WebPage","@id":"https:\/\/speedloger.com\/?p=68#webpage","url":"https:\/\/speedloger.com\/?p=68","name":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046 | Speedloger","inLanguage":"ja","isPartOf":{"@id":"https:\/\/speedloger.com\/#website"},"breadcrumb":{"@id":"https:\/\/speedloger.com\/?p=68#breadcrumblist"},"author":{"@id":"https:\/\/speedloger.com\/?author=1#author"},"creator":{"@id":"https:\/\/speedloger.com\/?author=1#author"},"datePublished":"2020-05-27T17:45:01+09:00","dateModified":"2020-05-27T20:34:14+09:00"},{"@type":"WebSite","@id":"https:\/\/speedloger.com\/#website","url":"https:\/\/speedloger.com\/","name":"Speedloger","description":"\u30e1\u30e2\u66f8\u304d\u3001\u8d70\u308a\u66f8\u304d\u3001\u8208\u5473\u306e\u3042\u308b\u3053\u3068\u3001\u3084\u3063\u305f\u3053\u3068","inLanguage":"ja","publisher":{"@id":"https:\/\/speedloger.com\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"Speedloger | \u30e1\u30e2\u66f8\u304d\u3001\u8d70\u308a\u66f8\u304d\u3001\u8208\u5473\u306e\u3042\u308b\u3053\u3068\u3001\u3084\u3063\u305f\u3053\u3068","og:type":"article","og:title":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046 | Speedloger","og:url":"https:\/\/speedloger.com\/?p=68","article:published_time":"2020-05-27T08:45:01+00:00","article:modified_time":"2020-05-27T11:34:14+00:00","twitter:card":"summary","twitter:title":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046 | Speedloger"},"aioseo_meta_data":{"post_id":"68","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-12-10 08:35:05","updated":"2025-06-04 00:41:05","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/speedloger.com\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/speedloger.com\/?cat=18\" title=\"Microsoft Azure\">Microsoft Azure<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/speedloger.com\/?cat=7\" title=\"Azure App Service\">Azure App Service<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAzure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/speedloger.com"},{"label":"Microsoft Azure","link":"https:\/\/speedloger.com\/?cat=18"},{"label":"Azure App Service","link":"https:\/\/speedloger.com\/?cat=7"},{"label":"Azure App Service\u306eMySQL in App\u3092WordPress\u304b\u3089\u4f7f\u3046","link":"https:\/\/speedloger.com\/?p=68"}],"jetpack_featured_media_url":"","uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mynote-thumbnail":false,"mynote-medium":false},"uagb_author_info":{"display_name":"\u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8","author_link":"https:\/\/speedloger.com\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"AppService\u5074\u3067\u8a2d\u5b9a\u3057\u305f\u5024\u3067\u30a2\u30af\u30bb\u30b9 wp-config.php\u3092\u66f8\u304d\u63db\u3048 &lt;?php if(!&hellip;","_links":{"self":[{"href":"https:\/\/speedloger.com\/index.php?rest_route=\/wp\/v2\/posts\/68"}],"collection":[{"href":"https:\/\/speedloger.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/speedloger.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/speedloger.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/speedloger.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=68"}],"version-history":[{"count":0,"href":"https:\/\/speedloger.com\/index.php?rest_route=\/wp\/v2\/posts\/68\/revisions"}],"wp:attachment":[{"href":"https:\/\/speedloger.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/speedloger.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/speedloger.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}