{"id":7337,"date":"2021-05-02T08:07:07","date_gmt":"2021-05-01T23:07:07","guid":{"rendered":"https:\/\/www.stuffy.site\/computers\/?p=7337"},"modified":"2022-04-28T11:23:16","modified_gmt":"2022-04-28T02:23:16","slug":"php%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88searchreplacedb4-1-3%e3%81%a7wordpress%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%82%92%e3%81%8a%e5%bc%95%e8%b6%8a%e3%81%97","status":"publish","type":"post","link":"https:\/\/www.stuffy.site\/computers\/archives\/7337","title":{"rendered":"PHP\u30b9\u30af\u30ea\u30d7\u30c8SearchReplaceDB4.1.3\u3067WordPress\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u304a\u5f15\u8d8a\u3057"},"content":{"rendered":"\n<p>PHP\u30b9\u30af\u30ea\u30d7\u30c8<a href=\"https:\/\/interconnectit.com\/search-and-replace-for-wordpress-databases\/\">SearchReplaceDB4.1.3<\/a>\u306e\u6700\u65b0\u7248(2021\/5\/2\u73fe\u5728)\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u65e7\u30b5\u30a4\u30c8\u306eMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306eURL\u3092\u624b\u8efd\u306b\u7f6e\u63db\u3001\u65b0\u30b5\u30a4\u30c8\u306b\u5f15\u8d8a\u3057\u3057\u305f\u306e\u3067\u30e1\u30e2\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff10\uff0e\u307e\u305a\u65e7\u30b5\u30a4\u30c8\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u3042\u3089\u304b\u3058\u3081\u5f15\u3063\u8d8a\u3057\u5148\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n<pre># # mysql -u user_name -p database_name &lt; export_file_name.sql<\/pre>\n\n\n<p>\uff11\uff0e\u6b21\u306b\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u540d\u524d\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ea\u30f3\u30af\u3092\u53d7\u3051\u53d6\u308a\u305d\u306e\u5f8c\u306b\u30ea\u30f3\u30af\u5148\u306e\u300cDownload Now\u300d\u304b\u3089\u30a2\u30d7\u30ea\u672c\u4f53\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n\n\n\n<p>\uff12\uff0ezip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3057\u3066Search-Replace-DB-master\/ \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30b5\u30fc\u30d0\u30fc\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff13\uff0echown\u30b3\u30de\u30f3\u30c9\u3067\u6240\u6709\u6a29\u3092apache\u30e6\u30fc\u30b6\u30fc\u306b\u5909\u66f4\u30fb\u30fb\u30fb\u3002<\/p>\n\n\n<pre># chown -R apache:apache \/var\/www\/html\/Search-Replace-DB-master\/<\/pre>\n\n\n<p>\uff14\uff0eSElinux \u3092\u4e00\u6642\u7684\u306bpermissive\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n<p><\/p>\n<pre>setenforce 0<\/pre>\n<p>\uff15\uff0e\u30d6\u30e9\u30a6\u30b6\u306e\u30a2\u30c9\u30ec\u30b9\u30d0\u30fc\u304b\u3089example.com\/Search-Replace-DB-master \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u30a2\u30d7\u30ea\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>example.com\/Search-Replace-DB-master<\/pre>\n\n\n<p>\uff16\uff0e[replace] \u306e\u30dc\u30c3\u30af\u30b9\u306b\u691c\u7d22\u6587\u5b57\u5217\u3092[with]\u30dc\u30c3\u30af\u30b9\u306b\u7f6e\u63db\u6587\u5b57\u5217\u3092\u5165\u529b\u3057\u3066\u8a73\u7d30\u60c5\u5831\u3092\u5165\u529b\u30fb\u30fb\u30fb\u3002<\/p>\n\n\n<table>\n<tbody>\n<tr>\n<td>database name<\/td>\n<td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u540d\u524d<\/td>\n<\/tr>\n<tr>\n<td>username<\/td>\n<td>\u30e6\u30fc\u30b6\u30fc\u540d<\/td>\n<\/tr>\n<tr>\n<td>pass<\/td>\n<td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9<\/td>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u306e\u30db\u30b9\u30c8\u30a2\u30c9\u30ec\u30b9<\/td>\n<\/tr>\n<tr>\n<td>port<\/td>\n<td>\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u306e\u30dd\u30fc\u30c8\u756a\u53f7(3306)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/05\/SearchReplace.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"625\" src=\"https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/05\/SearchReplace-1024x625.png\" alt=\"\" class=\"wp-image-7447\" srcset=\"https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/05\/SearchReplace-1024x625.png 1024w, https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/05\/SearchReplace-300x183.png 300w, https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/05\/SearchReplace-768x469.png 768w, https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/05\/SearchReplace-1536x937.png 1536w, https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/05\/SearchReplace-1200x732.png 1200w, https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/05\/SearchReplace.png 1703w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>\uff17\uff0e[Test connection] \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u6210\u529f\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n<p>\uff18\uff0e[Search and Replace]\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3059\u308b\u3068\u5f15\u3063\u8d8a\u3057\u5148\u306eURL\u3078\u306e\u66f8\u304d\u63db\u3048\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff19\uff0eWordpress \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u3070\u5f15\u3063\u8d8a\u3057\u4f5c\u696d\u306f\u6b63\u5e38\u7d42\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<p>\uff11\uff10\uff0e\u6700\u5f8c\u306b\u5b89\u5168\u306e\u305f\u3081\u306b[delete me]\u30dc\u30bf\u30f3\u304b\u307e\u305f\u306f\u3001rm \u30b3\u30de\u30f3\u30c9\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u524a\u9664\u3057\u3066SElinux \u3092\u5143\u306b\u623b\u305b\u3070\u4f5c\u696d\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u304a\u75b2\u308c\u3055\u307e\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u30b9\u30af\u30ea\u30d7\u30c8SearchReplaceDB4.1.3\u306e\u6700\u65b0\u7248(2021\/5\/2\u73fe\u5728)\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u65e7\u30b5\u30a4\u30c8\u306eMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306eURL\u3092\u624b\u8efd\u306b\u7f6e\u63db\u3001\u65b0\u30b5\u30a4\u30c8\u306b\u5f15\u8d8a\u3057\u3057\u305f\u306e\u3067\u30e1\u30e2\u3057\u307e\u3059\u3002 \uff10\uff0e\u307e\u305a\u65e7\u30b5\u30a4\u30c8\u306e\u30c7\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,52,35],"tags":[],"class_list":["post-7337","post","type-post","status-publish","format-standard","hentry","category-centos7","category-mysql","category-php"],"_links":{"self":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts\/7337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/comments?post=7337"}],"version-history":[{"count":7,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts\/7337\/revisions"}],"predecessor-version":[{"id":8626,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts\/7337\/revisions\/8626"}],"wp:attachment":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/media?parent=7337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/categories?post=7337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/tags?post=7337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}