• Resolved EMar

    (@sounds)


    Hi,

    When I used the option to change table prefix, the home page had
    a drop-down to pick language for a fresh wordpress install.

    It changed the prefix in wp-config but it didn’t change any of the tables in the database,
    Also said it changed the records in usermeta, but I looked in phpmyadmin, no tables changed.

    I just see this message for every table: table name update failed

    So I switched the table prefix back to wp_ in wp_config to fix the site.

    Any tips appreciated.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @sounds,

    It might be some other plugin installed with a drop-down to pick the language for WordPress.

    Generally, fresh install does not have such an option to change language.

    DB prefix can be changed from the WordPress > Database security > Database prefix

    It might be the form to change prefix submitted but there might be DB operation rights issue or any other issue the DB prefix is not updated using query and only in wp-config.php DB prefix changed.

    Do you have WordPress debugging on and the errors are logged in the PHP error log?

    WP security > Settings > General settings have the Debug log on feature for AIOS security plugin.

    WP security > Dashboard > Debug log will have the logs but it will be the name of the table with update failed etc.

    https://developer.www.ads-software.com/advanced-administration/debug/debug-wordpress/

    Regards

    Thread Starter EMar

    (@sounds)

    Ok, I have debug turned on now,
    Then I did a database backup to UpdraftPlus and hit changed database prefix.
    There is nothing in the debug log when checking afterwards.
    I only had to set the prefix back in wp-config.php to get the site working again.
    Then I went into UpDraft and did database restore from saved file.

    Starting DB prefix change operations.....
    
    Your WordPress system has a total of 22 tables and your new DB prefix will be: br_
    
    A backup copy of your wp-config.php file was created successfully!
    
    <code>wp_aiowps_audit_log</code> table name update failed
    
    <code>wp_aiowps_debug_log</code> table name update failed
    
    <code>wp_aiowps_events</code> table name update failed
    
    <code>wp_aiowps_global_meta</code> table name update failed
    
    <code>wp_aiowps_logged_in_users</code> table name update failed
    
    <code>wp_aiowps_login_lockdown</code> table name update failed
    
    <code>wp_aiowps_message_store</code> table name update failed
    
    <code>wp_aiowps_permanent_block</code> table name update failed
    
    <code>wp_commentmeta</code> table name update failed
    
    <code>wp_comments</code> table name update failed
    
    <code>wp_links</code> table name update failed
    
    <code>wp_litespeed_url</code> table name update failed
    
    <code>wp_litespeed_url_file</code> table name update failed
    
    <code>wp_options</code> table name update failed
    
    <code>wp_postmeta</code> table name update failed
    
    <code>wp_posts</code> table name update failed
    
    <code>wp_term_relationships</code> table name update failed
    
    <code>wp_term_taxonomy</code> table name update failed
    
    <code>wp_termmeta</code> table name update failed
    
    <code>wp_terms</code> table name update failed
    
    <code>wp_usermeta</code> table name update failed
    
    <code>wp_users</code> table name update failed
    
    Please change the prefix manually for the above tables to: br_
    
    Checking for MySQL tables of type "view".....
    
    wp-config.php file was updated successfully!
    
    Update of table br_options failed: unable to change wp_user_roles to br_user_roles
    
    The usermeta table records which had references to the old DB prefix were updated successfully!
    
    The database prefix change tasks have been completed.
    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @sounds,

    It seems the sql query below fails for to rename the table and change table prefix.

    Which hosting have you used ?

    can you please contact hosting provider as this is not the general case. there must be some rights issue.

    RENAME TABLE wp_aiowps_audit_log  TO br_aiowps_audit_log
    Thread Starter EMar

    (@sounds)

    Hi,

    I have it on my own server, Linux with Centos Web Panel,
    Have other wp sites on there, forget how I did the prefix on those.
    Think I did a fresh install for other site.

    I’ll look into it further.

    Thanks

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @sounds,

    Ok, you should cross check the query RENAME do have any privilege issue?

    You may login to mysql server with the username, password and dbname mentioned in wp-config.php

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.