wp-cli-rename-db-prefix
wp-cli-rename-db-prefix copied to clipboard
A WP-CLI command to rename WordPress' database prefix
`[email protected]: /home/cuisine.cqfd.net/public_html hist:116 jobs:0 # wp --allow-root --no-confirm rename-db-prefix rghyt_ Error: Parameter errors: unknown --confirm parameter `
Hi, What would you think of a simple script like this one? Wouldn't it be easier or am I being too simplistic using sed? $SITE_B_DB, $SITE_B_USER, PREFIX1, PREFIX2, SITE_B would...
Hi! Thanks for a great command. I would like to have a way to skip changes to wp-config.php because the command may (and has) had some problems if the prefix...
(code comments) Add MultiSite support.
Set global $table_prefix to new one now, or earlier in process, to avoid errors during shutdown, etc? In __invoke() try block.
`if ( ! $wpdb->query( $update_query ) ) {`
in update_blog_options_tables()
Functional tests are an integral ingredient of highly-quality, maintainable commands. WP-CLI tries to make it as easy as possible to add functional tests to your package with its `wp scaffold...