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. Database Table Manager Plugin For WordPress Hi, This plugin demonstrates the use of left joins and...
  2. How To Change Database password In WordPress Blog? Hello All, In order to change the database password for...
  3. How To Change Database Username In WordPress Blog? Hello All, In order to change the database user for...
  4. Case Study: Can Not Select Database Error Message Hi, I have upgraded database with automatic upgrade tool of...
  5. How To Change MySQL Database Port In WordPress Blog? Hello All, In order to change the MySQL database Port...

Leave a Reply

You must be logged in to post a comment.