RSS Feed

More php / mySQL | html | css | js

     Notes: PHP / MYSQL | HTML | CSS | JS
free-php-scripts
free-joomla-extensions

May 27
2011

Wordpress Change Database Prefix

Posted by bohemia in Untagged 

To change database table prefixes with Wordpress using mysql prompt,

1) Open mysql command line.
2) Enter: Show databases.
3) Enter: Use desired database.
4) Enter the command:
Rename table wp_comments to newprefix_comments;
4) With mysql prompt, renaming each table will need to be typed each time one query is finished. Altering the database prefix is much faster with phpmyadmin. The following explains how to change database table prefixes with phpmyadmin.
5) Alter wp-config and change the wp_ prefix to the desired prefix.

To change database table prefixes with Wordpress using phpmyadmin,

1) Open php myadmin.
2) Open sql window.
3) Enter the command:
Rename table wp_comments to newprefix_comments;
4) Every time you paste one line into the SQL window, click on GO and see the table name change on your left. Keep changing the table names until all your Wordpress tables have the new prefix.
5) Alter wp-config and change the wp_ prefix to the desired prefix.

Comments (0)add comment

Write comment

busy