Skip to content

Instantly share code, notes, and snippets.

@rxnlabs
Created September 8, 2014 17:55
Show Gist options
  • Save rxnlabs/24f806193f36088d78d4 to your computer and use it in GitHub Desktop.
Save rxnlabs/24f806193f36088d78d4 to your computer and use it in GitHub Desktop.
WP - PHP upgrade WordPress database from the command line. Useful if upgrading a large database or upgrading multiple sites and you don't want to visit each sites dashboard.
#initialize PHP interactive shell
php -a
require 'wp-load.php';ini_set('memory_limit',-1);require 'wp-admin/includes/admin.php';require 'wp-admin/includes/upgrade.php';wp_upgrade();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment