06-18-2010, 04:48 AM
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;
The bit that you're interested in is:
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
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