How to change the wordpress database table prefix?

By default, wordpress database tables are created with the prefix wp_. However, you can change this value and create tables with any other prefix. Follow the steps below:

You need to do this before installation:

1) Open the wp-config.php file and write down the database name, username and password.
2) Now, scroll down and you will find this line:

$table_prefix = ‘wp_’;

Edit this line and change the wp to anything you want. For example:

$table_prefix = ‘rs_’;

This will create the wordpress tables with prefix rs_ instead of wp_.

Popularity: 28%

Related posts:
  1. Case Study: Can Not Select Database Error Message Hi, I have upgraded database with automatic upgrade tool of...
  2. Database Table Manager Plugin For Wordpress Hi, This plugin demonstrates the use of left joins and...
  3. How To Change Database password In WordPress Blog? Hello All, In order to change the database password for...
  4. How To Change Database Username In WordPress Blog? Hello All, In order to change the database user for...
  5. How to migrate from WordPress SU to WordPress MU? Hi, This is the complete process to migrate wordpress single...

Leave a Reply

You must be logged in to post a comment.