• Resolved maf007

    (@maf007)


    tl;dr
    Do a WordPress Export (in addition to a database backup) prior to running this plugin.

    I’m running on localhost/MAMP. I installed the plugin and backed up the database, .htaccess, and wp-config.php before making any changes in the plugin settings. After completing the plugin setup I discovered that almost all of my pages were missing. Restoring the backup didn’t work. After several hours of forensic work here’s my theory.

    I have two different WP installations (call the WP1 and WP2) on localhhost. I stopped developing WP1 but did not delete the WP1 database or WP1 files. I installed your plugin in the newer WP2 installation only. Each database had a unique name and unique table prefix. Both databases had the same username and password.

    The plugin appears to have backed up the old database (associated with WP1) rather than the newer database (WP2). Something corrupted the WP2 database (I assume this plugin), and now all of the newer database content is lost and can’t be restored from backup because there isn’t one.

    The older (WP1) database name is dl*** while the newer database name is te***. Both of them contain several tables associated with your plugin, such as wp_aiowps_events.

    Question-was this caused by my having identical login credentials for both databases? Does the plugin look for the first (alphabetical) database it can log into? The correct DB name is in wp-config but the plugin didn’t use it.

    In any case, you should have users do a WordPress Export as well as backing up the database. I have an older Export but I still lost 80% of my work.

    https://ww.wp.xz.cn/plugins/all-in-one-wp-security-and-firewall/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor wpsolutions

    (@wpsolutions)

    You must have something strange going on with your setup because it is impossible for the plugin to backup data for a completely different site.

    During the backup process the aiowps plugin will get all of the tables for the current site using:
    $tables = $wpdb->get_results( 'SHOW TABLES', ARRAY_N );

    The above will only list tables from the database which is currently running the plugin that is executing that command. It will not and cannot obtain the tables for a completely unrelated and independent site.

    There is something non-standard or incorrect with your setup.

    Thread Starter maf007

    (@maf007)

    Thanks for the quick reply. Other than enabling the ImageMagick graphics engine, I have a vanilla installation using MAMP on Mac OS 10.10.5.

    I’m going to erase everything–DBs, MAMP, WP, the whole lot– and start over clean. If I have any insights into this I’ll let you know.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wrong database backed up’ is closed to new replies.