Almost everything that you do in WordPress is stored in databases. Your new plugins will use a database as well as the core WordPress system. Since databases contain all your information, it is important that you do everything you can to make it more secure.
Because more often than not, hackers use bots to search for security flaws in your website, it is not a good idea to have a default database name and prefix for your WP database.
If you had installed WordPress by yourself, you will remember that you had to input database information like the name of your new database, username, and a database prefix. Standard WordPress prefix for databases is wp_ and that is the one you want to change.
Change DB Prefix
Before you do any changes, it would be a good idea to backup your databases and your WordPress installation. Now when you’re sure everything’s safe to work with, let’s see how to change the prefix with free Change DB prefix plugin.
- Go to Plugins->Add New
- Search for “Change DB Prefix”
- Install and activate the plugin
- Navigate to Settings -> Change DB Prefix
Before you can continue, you will have to make sure that your wp-config.php is writable and check that your databases have alter rights.
A simple way to check file permissions is using FTP client. If you connect to your server with an FTP client like FileZilla, you should find your wp-config.php file (which is located in the main directory), right-click on the file and choose “File Permissions” from the drop-down menu. There you can simply (un)check permissions and make the file writable.
Now you only have to write down the prefix you are changing (which is “wp_” if you haven’t used a custom one) and choose a new one. Don’t forget to save changes and you’re done.