The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
So to sum up for anyone else in the same situation, this is what I did to clone the database:
Switch off the forum from the admin panel->options->Turn Your vBulletin On and Off use mysqldump to copy out the existing database: Code:
mysqldump -h [server_ip_here] -u [user] -p[password] [database_name_here] > liveforumdump.sql copy the entire forum root folder, including owner and groups Code:
cp -a /pathtosourcefolder /pathtodestfolder Next create a new database to house the duplicate in: log in to mysql as root (or other suitably privileged user): Code:
mysql -u root -p Code:
CREATE DATABASE cloned_forum_db_name; Code:
GRANT ALL PRIVILEGES ON cloned_forum_db_name.* TO clone_user@localhost IDENTIFIED BY 'password_here'; Code:
quit Code:
mysql -u root -p cloned_forum_db_name < liveforumdump.sql Make sure that you change the following lines to match the user, database and passwords which you have used in the previous steps: Code:
$config['Database']['dbname'] = 'cloned_forum_db_name'; $config['MasterServer']['username'] = 'clone_user'; $config['MasterServer']['password'] = 'password_here'; Code:
$config['Misc']['forumpath'] = 'forum_root_path_here'; $config['Misc']['cookieprefix'] = 'cookie_prefix_here'; $config['Datastore']['class'] = 'vB_Datastore_Filecache'; $config['Datastore']['prefix'] = 'datastore_prefix_here'; You may also need to change the settings under: admin->settings->options->Site Name / URL / Contact Details if they don't automatically reflect the new path etc. that you enter in config.php Finally, if you want to put this new copy in development mode you can set: Code:
$config['Misc']['debug'] = true; Don't forget to switch your main forum back on afterwards! |
Благодарность от: | ||
Lynne |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|