Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Multi-DB (Conversion Tool)
- Plugin URI: http://premium.wpmudev.org/project/Multiple-Databases
- Description:
- Author: Ron Dillehay - FanMail to rdillehay@hotmail.com (no tech support please) - Modified slightly by Andrew Billits (Incsub)
- Version: 2.9.2
- Author URI:
- Descriptiom:
- This script is to move blogs from a wordpress mu single database setup, to a wordpress mu multiple database setup using an MD5 hash to establish blog routing
- Use this script at your own risk. My test setup uses php 5, mysql 5, and wordpress mu 1.2.5a
- */
- //------------------------------------------------------------------------//
- //---Config---------------------------------------------------------------//
- //------------------------------------------------------------------------//
- ///DB Settings
- $dbname = "ukclimber203009"; //This is your current database
- $blog_table_prefix = 'wp_'; //Prefix of your wpmu blog tables, most likely this won't need to be changed
- $newdb_prefix = 'ukclimber203009_'; //This is the prefix of the db's you're moving your tables into - we assume they are all the same, if not, you're in trouble
- //We need info to connect to the databases
- $dbhost = 'localhost';
- $dbuname = 'USERNAME';
- $dbpass = 'PASSWORD';
- //How many db's are you moving into (16, 256, or 4096)?
- $db_scaling = '4096';
- //------------------------------------------------------------------------//
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement