Title: Rename DB Table Prefix
Author: JRGould
Published: <strong>2017年9月29日</strong>
Last modified: 2017年9月29日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/rename-db-table-prefix.svg)

# Rename DB Table Prefix

 作者: [JRGould](https://profiles.wordpress.org/jrgould/)

[ダウンロード](https://downloads.wordpress.org/plugin/rename-db-table-prefix.zip)

 * [詳細](https://ja.wordpress.org/plugins/rename-db-table-prefix/#description)
 * [レビュー](https://ja.wordpress.org/plugins/rename-db-table-prefix/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/rename-db-table-prefix/#installation)
 * [開発](https://ja.wordpress.org/plugins/rename-db-table-prefix/#developers)

 [サポート](https://wordpress.org/support/plugin/rename-db-table-prefix/)

## 説明

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](https://github.com/iandunn/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.

## スクリーンショット

[⌊Step 1 - confirm that you have backed up your database⌉⌊Step 1 - confirm that 
you have backed up your database⌉[

Step 1 – confirm that you have backed up your database

[⌊Step 2 - confirm that you have backed up your wp-config.php⌉⌊Step 2 - confirm 
that you have backed up your wp-config.php⌉[

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 3 - input
your new table prefix or use the auto-generated one⌉[

Step 3 – input your new table prefix or use the auto-generated one

[⌊Step 4 - db table prefix has been renamed successfully⌉⌊Step 4 - db table prefix
has been renamed successfully⌉[

Step 4 – db table prefix has been renamed successfully

## インストール

 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

## FAQ

  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.

## 評価

![](https://secure.gravatar.com/avatar/3b917e1fb96d5284d83bf5985ddc4391c4b8ac3db9b0c41b6ad9839eeaf5dc55?
s=60&d=retro&r=g)

### 󠀁[Supper easy to rename table prefix. 😀](https://wordpress.org/support/topic/supper-easy-to-rename-table-prefix-d/)󠁿

 [Bluemad](https://profiles.wordpress.org/bluemad/) 2022年7月5日

This plugin makes renaming the WordPress Database table prefixes hassle-free.

![](https://secure.gravatar.com/avatar/6b0b3d2ccb76ed2055e6057fae21b9c8637d273c280dc166e880c85e98d6856f?
s=60&d=retro&r=g)

### 󠀁[Clean and fast](https://wordpress.org/support/topic/clean-and-fast-17/)󠁿

 [Luis Colome](https://profiles.wordpress.org/luiscolome/) 2022年4月22日

It does what it says and it does well. The plugin asks you if you have baked up 
you database and wp-config.php file, which it is a good reminder 🙂 I wouldn't expect
less from the authors. Thanks for your work!

![](https://secure.gravatar.com/avatar/9900fc9f5da490e957ca38537fd69b1542bcfd98bcf42c7b54bb2f1ed609add5?
s=60&d=retro&r=g)

### 󠀁[Does its job](https://wordpress.org/support/topic/do-its-job-2/)󠁿

 [iamhoseyn](https://profiles.wordpress.org/iamhoseyn/) 2021年5月9日

Good if your wp-config file is writable.

![](https://secure.gravatar.com/avatar/0d88e69cd5146d0a92994dbf3f629384454aa3c3a03cf59989acdfc672a5b258?
s=60&d=retro&r=g)

### 󠀁[Excellent Plugin, Great Time Saver](https://wordpress.org/support/topic/excellent-plugin-great-time-saver/)󠁿

 [Pat K](https://profiles.wordpress.org/blackcapdesign/) 2018年12月7日

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

![](https://secure.gravatar.com/avatar/1a8a0207b259a9e291d94d9057d18b7a370d2984da2276381330bf00431538e6?
s=60&d=retro&r=g)

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-6020/)󠁿

 [Prosentra](https://profiles.wordpress.org/wpress_class/) 2018年10月11日

Actually it did the job easily, great work

![](https://secure.gravatar.com/avatar/144a06add354148580348d88fbc635aa8688af129d96b5a177b2520ec05009c3?
s=60&d=retro&r=g)

### 󠀁[Worked](https://wordpress.org/support/topic/worked-59/)󠁿

 [Phi Phan](https://profiles.wordpress.org/mr2p/) 2018年4月26日

Great work! Save time.

 [ 6件のレビューをすべて表示 ](https://wordpress.org/support/plugin/rename-db-table-prefix/reviews/)

## 貢献者と開発者

Rename DB Table Prefix はオープンソースソフトウェアです。以下の人々がこのプラグイン
に貢献しています。

貢献者

 *   [ JRGould ](https://profiles.wordpress.org/jrgould/)
 *   [ Delicious Brains ](https://profiles.wordpress.org/deliciousbrains/)

[“Rename DB Table Prefix” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/rename-db-table-prefix)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/rename-db-table-prefix/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/rename-db-table-prefix/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/rename-db-table-prefix/)
を [RSS](https://plugins.trac.wordpress.org/log/rename-db-table-prefix/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 0.1

 * Initial Release

## メタ

 *  バージョン **0.1.0**
 *  最終更新日 **9年前**
 *  有効インストール数 **100+**
 *  WordPress バージョン ** 3.0.1またはそれ以降 **
 *  検証済み最新バージョン: **4.8.34**
 *  言語
 * [English (US)](https://wordpress.org/plugins/rename-db-table-prefix/)
 * タグ
 * [database](https://ja.wordpress.org/plugins/tags/database/)[mysql](https://ja.wordpress.org/plugins/tags/mysql/)
   [Prefix](https://ja.wordpress.org/plugins/tags/prefix/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/rename-db-table-prefix/advanced/)

## 評価

 5つ星中4.8つ星

 *  [  5 5-星レビュー     ](https://wordpress.org/support/plugin/rename-db-table-prefix/reviews/?filter=5)
 *  [  1 4-星レビュー     ](https://wordpress.org/support/plugin/rename-db-table-prefix/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/rename-db-table-prefix/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/rename-db-table-prefix/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/rename-db-table-prefix/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/rename-db-table-prefix/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/rename-db-table-prefix/reviews/)

## 貢献者

 *   [ JRGould ](https://profiles.wordpress.org/jrgould/)
 *   [ Delicious Brains ](https://profiles.wordpress.org/deliciousbrains/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/rename-db-table-prefix/)