Advertisement
akeable

MOVE-BLOGS.PHP

Aug 20th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Multi-DB (Conversion Tool)
  4. Plugin URI: http://premium.wpmudev.org/project/Multiple-Databases
  5. Description:
  6. Author: Ron Dillehay - FanMail to rdillehay@hotmail.com (no tech support please) - Modified slightly by Andrew Billits (Incsub)
  7. Version: 2.9.2
  8. Author URI:
  9. Descriptiom:
  10. 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
  11. Use this script at your own risk. My test setup uses php 5, mysql 5, and wordpress mu 1.2.5a
  12. */
  13.  
  14. //------------------------------------------------------------------------//
  15. //---Config---------------------------------------------------------------//
  16. //------------------------------------------------------------------------//
  17.  
  18. ///DB Settings
  19. $dbname = "ukclimber203009"; //This is your current database
  20. $blog_table_prefix = 'wp_'; //Prefix of your wpmu blog tables, most likely this won't need to be changed
  21. $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
  22.  
  23. //We need info to connect to the databases
  24. $dbhost = 'localhost';
  25. $dbuname = 'USERNAME';
  26. $dbpass = 'PASSWORD';
  27.  
  28. //How many db's are you moving into (16, 256, or 4096)?
  29. $db_scaling = '4096';
  30.  
  31. //------------------------------------------------------------------------//
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement