How to change prefix database table name of WordPress?  

How to change prefix database table name of WordPress?

 

2 ways to change the wordpress database prefix

 

  1. Use a plugin to change the database table prefix
  2. Rename wordpress database prefix using database query with PHPmyadmin

 

  1. Use a plugin to change the database table prefix

 

 

  1. Open the WordPress dashboard

 

  1. Click on the plugins and click on the add new button

 

  1. To change the database prefix via plugin search the brozzme DB prefix & Tools add-ons in the WordPress plugin

 

  1. Click on the install now button to install the plugin to your WordPress website

 

  1. Click on the activate button to activate the plugin.

  1. Go to tools from the left side and click on the DB prefix.

 

      You can see the current prefix of the database there and change the database prefix which you want to change.

 

 

  1. Click on the Change DB prefix button and the prefix will change.

 

Please make sure that you can set the read/write permission for your web.config file. If the permissions are read-only then you will get an error because the plugin cannot change the database prefix into your file

 

2. Rename WordPress database prefix using database query with PHPmyadmin

 

Change the table prefix in web.config php

 To your website’s ROOT folder open the wp-config file change the table prefix as WP

To edit the WP-config file, login via FTP/SFTP via filezilla.

You can see the below line in WP-config file.

 

$table_prefix  = ‘wp_testing’

 

You can only add a prefix with numbers, letters, and underscore.

 

Rename database tables

 

Open your database via PHPMYADMIN on the left side you can see your database

 

  1. Select the database for which you want to change the table prefix into the wp-config.php and follow the below steps.

 

  1. Select the database.

 

  1. To select all the tables check the “check all” checkboxes

 

  1. Click on the drop-down and select “replace table prefix”.

 

 

  1. Enter the new table prefix into the filed of To.

 

  1. Click on the continue, after entering a new prefix and the table prefix will change.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SQL server- network related or instance-specific error happened while connection establishing

  Instance-specific or network related error happening while connecting to SQL server   Please...

OleDB connection string examples

OleDB connection string examples MS Access (Jet) "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA...

Do you allow custom COM components?

Do you allow custom COM components? We are not offering to install the custom COM components...

Error when accessing a WCF services

Error when accessing a WCF services Error when accessing a WCF service: "IIS specified...

How to cache static contents to client with UseMaxAge?

You can consider to caches static contents to the client with UseMaxAge if your website has too...

Powered by WHMCompleteSolution