WP-CLI 不会替换站点名称
WP-CLI doesn't replace sitename
我正在尝试通过以下命令 WP-CLI
替换站点 url:
wp search-replace "https://oldUrl" "http://newUrl" --allow-root --all-tables --verbose
但是我正在进入控制台:
+----------------------------------------+-------------------------+--------------+------+
| Table | Column | Replacements | Type |
+----------------------------------------+-------------------------+--------------+------+
| wp_post | | skipped | |
| wp_user | | skipped | |
| wp_postmeta | | skipped | |
| wp_usermeta | | skipped | |
| ......... | | skipped | |
我错过了什么?
我找到了解决方案。 One of the keys in each database table has to be marked as the primary key, or else WP-CLI will skip over it and output skipped as shown above
。谢谢@disinfor
对我帮助很大。始终检查数据库中的表。
我正在尝试通过以下命令 WP-CLI
替换站点 url:
wp search-replace "https://oldUrl" "http://newUrl" --allow-root --all-tables --verbose
但是我正在进入控制台:
+----------------------------------------+-------------------------+--------------+------+
| Table | Column | Replacements | Type |
+----------------------------------------+-------------------------+--------------+------+
| wp_post | | skipped | |
| wp_user | | skipped | |
| wp_postmeta | | skipped | |
| wp_usermeta | | skipped | |
| ......... | | skipped | |
我错过了什么?
我找到了解决方案。 One of the keys in each database table has to be marked as the primary key, or else WP-CLI will skip over it and output skipped as shown above
。谢谢@disinfor
对我帮助很大。始终检查数据库中的表。