MyBB Community Forums

Full Version: How to get a backup to work on a different domain name?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to:

a) backup my board
b) create a folder by the same name as the current folder, on a different domain
c) install the backup in the created folder on the new domain

1) the website on the new domain has another username.

What will be the procedure I will have to use?


Thanks guys!

(2014-10-10, 07:41 PM)clams14 Wrote: [ -> ]I want to:

a) backup my board
b) create a folder by the same name as the current folder, on a different domain
c) install the backup in the created folder on the new domain
d) the website on the new domain has another username, so the prefix is different:
mensi_mbb334 on the old one
waxi_mbb334 on the new one. Is this causing the error?

When I try to install the mybb backup from phpmyadmin I get this error.


 MySQL said: Documentation

#1050 - Table 'mybb_adminlog' already exists 


-- MyBB Database Backup
-- Generated: 9th October 2014 at 12:18
-- -------------------------------------

CREATE TABLE mybb_adminlog (
  uid int(10) unsigned NOT NULL DEFAULT '0',
  ipaddress varchar(50) NOT NULL DEFAULT '',
  dateline bigint(30) NOT NULL DEFAULT '0',
  module varchar(50) NOT NULL DEFAULT '',
  action varchar(50) NOT NULL DEFAULT '',
  data text NOT NULL,
  KEY module (module,action)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

What will be the procedure I will have to use?


Thanks guys!
For each of the CREATE TABLE statements modify them to be CREATE TABLE IF NOT EXISTS [table_name] rest of stuff. Once you have done that, you will need to edit the settings.php file to change $settings['bburl'] to point to your new url. You will also need to update the cookie settings in that file. Then log into the ACP->Settings and change the settings there.