A very good tool you could use for that purpose is the WP-Security-Scan plugin, which takes care of all your security problems, including that one.
The problem is that most of the times it is very hard to get it to change the prefix. Because of that you will have to do it manually.
Changing the table prefix manually
Backup! the most important thing of all, backup, backup everything, often and early!
Install the "Maintenance mode" plugin, this way while you change the prefix no one will see errors in your site.
Chose now a very hard prefix, for this example I'm using df7s_23c_.
Change the current prefix in wp-config.php, but you shouldn't upload it yet.
Now start changing the table names to the new ones. (I recommend using phpMyAdmin for this, as it will make next step easier)
This is very important!
There are some rows in your new tables that need to be updated:
- Go to the former table wp_options (Now df7s_23c_options in the example) and change the following rows (It is recommended to search for "%wp_%" so that you get a list of the rows to edit):
- Now go to the former table wp_usermeta (Now df7s_23c_usermeta in the example) and change the following rows:
Upload the file
wp-config.php if you haven't done so before, and check to see if it works.
If it doesn't make sure that all of the tables have been correctly renamed, and all the rows listed above. If it doesn't work yet there might be some plugins that created a table containing in it's rows the wp_ table prefix. If that is the case check all your plugin-created tables to ensure that none of the fields containt the old prefix.
If you still get problems replace your backup and wp-config.php and contact me through the comments of this post and I'll try to help you