• Resolved tomdhu

    (@tomdhu)


    Some time ago we had a staging site and thought we could get rid of it by deleting the staging folder in the CP File Manager however when we come to do a snapshot backup, these staging entries still show in the snapshots available.
    I went to phpmyadmin and ran a query to drop all the tables named wpstg! etec using this query

    SELECT CONCAT('DROP TABLE ', TABLE_SCHEMA, '.', TABLE_NAME, ';')
    FROM INFORMATION_SCHEMA.TABLES
    WHERE TABLE_NAME LIKE 'wpstg0_%'
    or TABLE_NAME LIKE 'wpstgtmp_%'
    or TABLE_NAME LIKE 'wpstg0_%'
    or TABLE_NAME LIKE 'wpstg1_%'
    or TABLE_NAME LIKE 'wpstg2_%'
    or TABLE_NAME LIKE 'wpstg3_%'
    or TABLE_NAME LIKE 'wpstg4_%'
    or TABLE_NAME LIKE 'wpstg5_%'
    or TABLE_NAME LIKE 'wpstg6_%'
    or TABLE_NAME LIKE 'wpstg7_%'
    or TABLE_NAME LIKE 'wpstg8_%'
    or TABLE_NAME LIKE 'wpstg9_%'
    or TABLE_NAME LIKE 'wpstg10_%'
    or TABLE_NAME LIKE 'wpstg11_%'
    or TABLE_NAME LIKE 'wpstg12_%'
    or TABLE_NAME LIKE 'wpstg13_%'
    or TABLE_NAME LIKE 'wpstg14_%'
    ;

    This didnt remove anything.
    I looked through WP_Options and couldnt see these tables.

    Any suggestions?

  • The topic ‘Removing old staging tables/files’ is closed to new replies.