Opis
Need to change your table prefix from wp_
to something else on a site that’s already running? Not running a multisite install? Rename DB Table Prefix can probably help.
RDTP’s primary functionality is based on the great WP-CLI package, wp-cli-rename-db-prefix.
Use at your own risk and make backups before running this plugin – it is entirely possible that this could break your site and you will need to be able to restore your database and wp-config.php
files from good backups if this happens.
Snimke zaslona
Instalacija
- Upload
rdtp.php
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Find
Rename DB Table Prefix
in the Tools menu - Back up your database and
wp-config.php
files before using Rename DB Table Prefix
ČPP
- Installation Instructions
-
- Upload
rdtp.php
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Find
Rename DB Table Prefix
in the Tools menu - Back up your database and
wp-config.php
files before using Rename DB Table Prefix
- Upload
- Why would I need to rename my table prefix
-
Primarily for situations when you have dev or staging sites that have different table prefixes than your prod site. When running migrations with plugins like WP Migrate DB (Pro), or even manually, it’s usually necessary to have the source and destination site running on the same table prefix.
Also, some people think that changing your table prefix from
wp_
to something else provides some security through obscurity. This probably isn’t very true. - What happens if something goes wrong
-
It is imperative that you make and test backups of your database and wp-config.php file before running RDTP. If something goes wrong and you find that your site is broken, you will need to restore your site from those backups.
The first thing RDTP does is try to change the
$table_prefix
variable in yourwp-config.php
file, and this is the most likely point that you will encounter an error. If RDTP is unable to update yourwp-config.php
file, it won’t continue on to update the database, so you’ll probably just need to check the permissions on yourwp-config.php
and try again.
Recenzije
Suradnici i Programeri
“Rename DB Table Prefix” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.
SuradniciPrevedite “Rename DB Table Prefix” na svoj jezik.
Zainteresirani ste za razvoj?
Pregledajte kôd, pogledajte SVN spremišteili se pretplatite na dnevnik razvoja od RSS.
Dnevnik promjena
0.1
- Initial Release