Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Rename DB Table Prefix

Mô tả

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.

Ảnh màn hình

  • Step 1 - confirm that you have backed up your database
  • Step 2 - confirm that you have backed up your wp-config.php
  • Step 3 - input your new table prefix or use the auto-generated one
  • Step 4 - db table prefix has been renamed successfully

Cài đặt

  1. Upload rdtp.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Find Rename DB Table Prefix in the Tools menu
  4. Back up your database and wp-config.php files before using Rename DB Table Prefix

Hỏi đáp

Installation Instructions
  1. Upload rdtp.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Find Rename DB Table Prefix in the Tools menu
  4. Back up your database and wp-config.php files before using Rename DB Table Prefix
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 your wp-config.php file, and this is the most likely point that you will encounter an error. If RDTP is unable to update your wp-config.php file, it won’t continue on to update the database, so you’ll probably just need to check the permissions on your wp-config.php and try again.

Đánh giá

7 Tháng Mười Hai, 2018
I always make a point of changing the default wp_ prefix on new installs for better security and this one time I forgot. D'oh. I was about to do it manually using a text editor and phpMyAdmin and thought, 'gee, i wonder if there's a plugin that could make quick work of this'? I saw Delicious Brains associated with this plugin and since I use their awesome Better Search Replace plugin a fair bit, I decided to give it a whirl. Holy crap - what a huge time saver! One click and done (I ran backups first). I checked my wp-config file and the db and everything looks ship-shape. Awesome little plugin. Thanks for sharing! Highly recommended - but back up first! PK
11 Tháng Mười, 2018
Actually it did the job easily, great work
26 Tháng Tư, 2018
Great work! Save time.
Đọc tất cả 3 đánh giá

Người đóng góp & Lập trình viên

“Rename DB Table Prefix” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi

0.1

  • Initial Release