Skip to content

Instantly share code, notes, and snippets.

@Viper007Bond
Created December 6, 2011 23:47
Show Gist options
  • Select an option

  • Save Viper007Bond/1440653 to your computer and use it in GitHub Desktop.

Select an option

Save Viper007Bond/1440653 to your computer and use it in GitHub Desktop.
Updgrade the WordPress DB from the command line
<?php
# Stick this file in your wp-content folder
define( 'WP_INSTALLING', true );
require_once( dirname( __FILE__ ) . '/../wp-load.php' );
timer_start();
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
delete_site_transient('update_core');
wp_upgrade();
die( '0' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment