Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

ddev-wp-rename-tables-prefix

A db command for DDEV to rename tables prefix of WordPress installations

Installation:

For DDEV v1.23.5 or above run

ddev add-on get biati-digital/ddev-wp-rename-tables-prefix

For earlier versions of DDEV run

ddev get biati-digital/ddev-wp-rename-tables-prefix

Usage

There are several ways to run the command but the most simple way is:

ddev wp-rename-tables-prefix --to=new_

If you only provide --to, the command will try to get the current table prefix directly from the database. If the current table prefix can not be found you can provide it.

ddev wp-rename-tables-prefix --from=old_ --to=new_

Options

You can run ddev help wp-rename-tables-prefix for help

Limitations

The command has not been tested in multisites installations

Before running the command make sure to create a database snapshot ddev snapshot just in case.