I am cleaning up my database and I am finding some bv_ tables in my database.
I’m pretty sure those are from this plugin.
After deleting this plugin, is it safe to delete those straggling database tables?
]]>The plugin seems to work fine, except that it strips all the blank lines from wp-config.php when writing to it. The replacement for function
public static function dbprefix_updateWpConfigTablePrefix($dbprefix_wpConfigFile, $oldPrefix, $newPrefix)
in brozzme_db_prefix_core.php will correct this issue. See below:
public static function dbprefix_updateWpConfigTablePrefix($dbprefix_wpConfigFile, $oldPrefix, $newPrefix)
{
// Check file's status' permissions
if (!is_writable($dbprefix_wpConfigFile))
{
return -1;
}
if (!function_exists('file')) {
return -1;
}
// Try to update the wp-config file
$lines = file($dbprefix_wpConfigFile);
$fcontent = '';
$result = -1;
foreach($lines as $line)
{
if (strpos($line, '$table_prefix') !== false){
$line = preg_replace("/=(.*)\;/", "= '".$newPrefix."';", $line);
}
$fcontent .= $line;
}
if (!empty($fcontent)){
// Save wp-config file
$result = file_put_contents($dbprefix_wpConfigFile, $fcontent);
}
return $result;
}
]]>
Hello!
some websites recommended this plugin for changing the table prefix.
After installing this plugin and changing the prefix I would like to uninstall it again.
Will there be any leftover from this plugin in the database or will it remove everything?
Thank you!
Laura
]]>I have tested the following steps
$table_prefix = ‘wp_NEW_’;
2. STEP Rename prefix in user meta Table
UPDATE NEW_usermeta
SET meta_key = REPLACE(meta_key, ‘wp_NEW_’, ‘wp_OLD_’)
WHERE meta_key LIKE ‘OLD_%’;
3. STEP Update prefix in wp_options Table
UPDATE NEW_options
SET option_value = REPLACE(option_value, ‘OLD’, ‘NEW’)
WHERE option_value LIKE ‘OLD_%’;
which lines should be also modified to work manual modification as plugin works without an issue?
]]>Hi, Benoti!
Could you declare compatibility with the last WordPress version, please?
There have been 3 major releases with no declared compatibility…
It would be great if you could do it (because I don’t want to bother you with that if it means to much extra work for you ??).
Thanks!
hi,
when using Brozzme DB Prefix change and DB Tools addon by perfix ‘2e3ir_’; wordpress going to install mode!
maybe this bug is related to WordPress or PHP!
The best way to solve this problem is to restore the site database to the previous backup and change the prefix to the previous prefix in wp-config.php
]]>I am afraid because the settings UI is displayed in every multisite. Also, can there be a global setting for multisite without replacing the site ID and letting it be an integer? Because in multisite it is indexing to replace <prefix>_<site_id>
which is somehow confusing.
brozzme-db-prefix-change requires a writable wp-config.php, and has been deactivated! Please change file permission and try again.
We have used this plugin before on Pressable.com all of a sudden its not working anymore.
]]>I tried to deactivate the plugin but it return an error. If I rename the plugin from the panel I have a warning on the plugin page impossible to delete.
I ask you to fix the plugin deactivation asap to allow me to delete it properly and completely.
Thank you.
Cristina
PS: in the installation page when I click on “install” the plugin activates automatically!
]]>Beware if you intend to use this plugin to add prefixes to your tables if your WordPress installation currently doesn’t have any.
Prefixes are referenced in some table fields, and you won’t be able to log in to your site anymore. Manual fixes in the database are then needed to recover access.
Here are the guidelines:
After changing your prefix from nothing to something, let say prefix_
, you need to add this prefix to the following fields in the database tables:
1. For at least your administrator account (find their ID in the prefix_users
table), the meta_key
value in the prefix_usermeta
table should be renamed from capabilities
to prefix_capabilities
.
It may be needed for other users too, I don’t know.
2. For the same user account (administrator), rename the meta_key
value from user_level
to prefix_user_level
.
3. In the prefix_options
table, the option_name
value user_roles
should be renamed to prefix_user_roles
.
Source for the fix: https://blog.andrewhoang.me/how-to-fix/
? Considering the multiple issues this plugin has, I advise not using it. ?
]]>Deactivating the plugin leads to a fatal error.
Just rename this plugin folder.
For example, from:
/plugins/brozzme-db-prefix-change
To:
/plugins/brozzme-db-prefix-change_a
The plugin will be automatically deactivated in the WordPress admin panel, and you can then uninstall it.
? Considering the multiple issues this plugin has, I advise not using it. ?
]]>Loads of errors on screen but still works.
Wordpress 5.8.1
]]>I know that this questions was already asked, but it wasn’t solved yet … So I ask again, if this plugin ist multisite-compatible? I wan’t to duplicate an existing multisite and then give the copy new db-prefixes … will this result in trouble with the copied page or does it work like for a single site? thanks for your reply, nico
]]>There is a fatal error with PHP v8.0
—
Fatal error: Array and string offset access syntax with curly braces is no longer supported in …/public_html/wp-content/plugins/brozzme-db-prefix-change/includes/brozzmeDbPSettings.php on line 211
]]>Hello all, I am not a techie, and I wanted to ask if this lovely plugin would be compatible with the latest versions of PHP & WordPress.
I am just finishing my site offline using MAMP and wanted to change the prefix prior to uploading which I forgot to change earlier.
It would be great if you any of you nice people here, let me know so that I don’t end up using it if it’s not compatible.
Thanks & regards,
Sagar
]]>is it compatible with wordpress multisite?
]]>Several php notices at DB_PREFIX panel:
Notice: Undefined index: dbprefix_hidden in /home/survivi7/public_html/startertheme/wp-content/plugins/brozzme-db-prefix-change/includes/brozzmeDbPSettings.php on line 45
Notice: Undefined variable: new_updated_prefix in /home/survivi7/public_html/startertheme/wp-content/plugins/brozzme-db-prefix-change/includes/brozzmeDbPSettings.php on line 118
Notice: Undefined variable: bprefix_Message in /home/survivi7/public_html/startertheme/wp-content/plugins/brozzme-db-prefix-change/includes/brozzmeDbPSettings.php on line 163
Notice: Undefined index: dbprefix_hidden in /home/survivi7/public_html/startertheme/wp-content/plugins/brozzme-db-prefix-change/includes/brozzmeDbPSettings.php on line 165
]]>Hi,
I used to use this plugin a lot and it always removed lots of extra spacing (particular, TABS) every time I ran it.
Before I run it again, I’m wondering if this has been changed (or if you’re planning on changing this).
Thanks!
m
Hi, I created my web with Google cloud platform.
This morning I just installed this plugin to change my website database table prefix. But the problem is when I finished changing and clicked ‘save’, my website suddenly collapse…It’s all gone. I couldn’t connect it. What do I do now..?
]]>Hi,
I did the fix using the code below.
File: brozzme-db-prefix-change/includes/brozzmeDbPSettings.php
Create a method to get wp config file,
public function get_wp_config_file() {
if (file_exists(ABSPATH . 'wp-config.php')) {
return ABSPATH . 'wp-config.php';
}
return dirname(ABSPATH) . '/wp-config.php';
}
and change this variable
$dbprefix_wpConfigFile = ABSPATH.'wp-config.php';
to
$dbprefix_wpConfigFile = $this->get_wp_config_file();
This is necessary because the wp-config.php file may be located a directory before root.
]]>Hi,
Your plugin looks promising and is highly rated.
I am keen on limiting the number of plugins on my site. So can this plugin be removed after the database prefix has been changed. Or should it stay activated?
Looking forward to your reply
Best Regards
Edwin