How to rename your WordPress database tables prefix after the installation

Content's very old; It might be outdated or no longer valid.

It’s really easy. You just need a plugin: Change DB Prefix

  • Make a backup of your database (and maybe your wp-config.php)
  • Make sure the webserver owns the whole WordPress directory (i.e. if you’re using Apache Web Server and your WordPress files resides inside /var/www/, just make sure to sudo chown -R www-data:www-data /var/www/
  • Also issue a sudo chmod -R 755 /var/www/ to give the webserver the ability to write to files but only read/execute to others.
  • Go to the plugin screen inside your WordPress admin panel, set the new prefix and run it.
  • Done.


Buy Me a Coffee at

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.