As to add an additional layer of security, to an eCommerce website I am working on, I have changed the default Database prefix from wp_
to wp_additional_prefix
.
To do this, I opened the wp-config.php
file and modified the $table_prefix = 'wp_';
entry to $table_prefix = 'wp_additional_prefix';
To modify existing Database Tables, I ran the following SQL Query for each Database Table:
RENAME table `wp_table_name` TO `wp_additional_prefix_table_name`;
I then searched the Fields, within the wp_options
and wp_usermeta
Tables, and replaced all references of wp_
with wp_additional_prefix
.
Whilst I was able to successfully perform the above actions, it did result in some of the website's content going missing. Content such as the website's Logo and Sliders. Additionally, each page's layout changes.
As such, I am wondering where I could be going wrong. Could it be that I am missing a Field or simply deviating from the default Database Prefix breaks the website?