Support Forums

Full Version: Backing up and moving a MyBB forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This is a tutorial from my personal experience on how to backup and move a MyBB forum as well as it's database over to a new host.

It is very important that you follow all of the steps correctly otherwise you could lose your forum or corrupt something.

1. Download the entire public_html folder to your hard drive, off the server. (via FTP)
2. Log in to the ACP on MyBB and create a new database back up.
3. Log in to your host, then PhpMyAdmin and export a copy of the database.

It's always good to have two copies, right?

4. Change the DNS servers on your domain name, so that they're pointing to the new host.

Now, log in to your new host's cpanel.

5. Create a new MySQL database (I recommend naming the database the same as the previous, as well as the user.)
6. Select the database table that you've just created and import the MySQL database that you previously saved from when you backed up the old PhpMyAdmin table.
7. Add the user that you created to the database that you just created, and grant it all permissions.
8. Upload the entire public_html folder that you backed up before on the new host.

Now when you visit your site, you're thinking what?! An error? This is because you need to go in and edit the;

Code:
"inc/config.php"       file.

The bit that you're interested in is:

Code:
$config['database']['database'] = 'a216715_tablename';
$config['database']['table_prefix'] = 'tablename_';

$config['database']['hostname'] = 'localhost';
$config['database']['username'] = 'a216715_tablename';
$config['database']['password'] = 'p4a55w0rd';

It'll have the configuration of your old host, simply add the new info and then upload in to inc/ .

Now, refresh your website and you should be good to go.

If it still doesn't work, you may need to change the Board url and cookie path which can be found in "inc/settings.php" then re-upload it once you've made the necessary changes.

I think that just about covers it.

If you have any problems, post or PM me.

Extras:

The original post can be found here on my forum:

Original post / thread.

mcompute forums
Thanks for this guide man, Great share!
Glad it's of some us, i looked on here yesterday when i was moving my forum over and couldn't find a tut so i googled for a bit then made my own.
(06-18-2010, 07:38 AM)MarkW7 Wrote: [ -> ]Glad it's of some us, i looked on here yesterday when i was moving my forum over and couldn't find a tut so i googled for a bit then made my own.

Good, amazing guide. What is the forums btw?
Thank you, and my forum is: http://mcompute.co.uk
(06-18-2010, 07:42 AM)MarkW7 Wrote: [ -> ]Thank you, and my forum is: http://mcompute.co.uk

Alright, I'll go check it out now Smile
Thank you for this, I'll be sure to use this when it is needed/if.

~A
Thank you, glad it's of use.
Thanks for the nice share man.
Thanks for this.
I had some idea on how to do this.
Pages: 1 2