Created
September 8, 2014 17:55
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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