|
Is it possible? -> Importing a database backup of an online forum into ...
|
|
03-12-2012, 06:10 PM
(This post was last modified: 03-14-2012 12:25 PM by HBB.)
Post: #1
|
|||
|
|||
Is it possible? -> Importing a database backup of an online forum into ...
Is it possible? -> Importing a database backup of an online forum into MyBB installed on localhost?
I tried via phpMYadmin, but error occurred! PHP Code: SQL query:Find the answer here |
|||
|
03-12-2012, 06:17 PM
Post: #2
|
|||
|
|||
RE: Is it possible? -> Importing a database backup of an online forum into ... This user has been denied support.
That error strikes out sometimes. Do this.
1. DO NOT import db directly into localhost. 2. Instead, create a database first, and then inside it, import all the tables (db). That should work probably, happened a few times with me. Z5T - Dynamic URL Shortener My Plugins & Themes |
|||
|
03-12-2012, 06:18 PM
Post: #3
|
|||
|
|||
RE: Is it possible? -> Importing a database backup of an online forum into ...
It is, yes. Just grab the backup and import it over phpMyAdmin or something like it.
Make sure you're importing it to an empty database though. The error you're getting means you're trying to import it to a database that is already populated. Create a new database, select it and then import the backup. |
|||
|
03-12-2012, 08:59 PM
(This post was last modified: 03-12-2012 09:00 PM by HBB.)
Post: #4
|
|||
|
|||
RE: Is it possible? -> Importing a database backup of an online forum into ...
(03-12-2012 06:18 PM)Fábio Maia Wrote: Create a new database, select it and then import the backup. crazy4cs Wrote:Instead, create a database first, and then inside it, import all the tables (db)According to your guide: 1. creating a new DB by (e.g.) phpMyAdmin 2. importing bakup.sql.gz 3. Installing MyBB on localhost SO, If I create a new db and import db backup -> Imported db will lose during install procedure of MyBB! MyBB replaces(=overwrites) new tables into created db instead of imported backup?! |
|||
|
03-13-2012, 06:11 AM
Post: #5
|
|||
|
|||
RE: Is it possible? -> Importing a database backup of an online forum into ... This user has been denied support.
(03-12-2012 08:59 PM)HBB Wrote: According to your guide:Correct. (03-12-2012 08:59 PM)HBB Wrote: SO, If I create a new db and import db backup -> Imported db will lose during install procedure of MyBB! MyBB replaces(=overwrites) new tables into created db instead of imported backup?!Import the db you want to bring on localhost first. Then, create a new empty db and list/name that db when installing MyBB. Then after the install, edit the inc/config.php file and replace the new db name with the old populated db that you've imported. Z5T - Dynamic URL Shortener My Plugins & Themes |
|||
|
03-13-2012, 10:37 AM
(This post was last modified: 03-13-2012 10:39 AM by HBB.)
Post: #6
|
|||
|
|||
RE: Is it possible? -> Importing a database backup of an online forum into ...
(03-13-2012 06:11 AM)crazy4cs Wrote: Import the db you want to bring on localhost first. Then, create a new empty db and list/name that db when installing MyBB.I followed your guidance as: 1. I create a DB (named "atom") and imported the backup 2. I create a new DB (named "atom2") and installed MyBB connected to "atom2". 3 I edited config.php in this way: From: PHP Code: $config['database']['database'] = 'atom2'; PHP Code: $config['database']['database'] = 'atom'; Now, This is the error that I got: Code: MyBB has experienced an internal error and cannot continue.1. what's wrong? 2. should new MyBB installed on localhost be the same as MyBB version of backup? 3. Should admin name of new MyBB installed on localhost be the same as MyBB admin name of backup? |
|||
|
03-13-2012, 01:23 PM
(This post was last modified: 03-13-2012 01:23 PM by Projec13.)
Post: #7
|
|||
|
|||
RE: Is it possible? -> Importing a database backup of an online forum into ...
(03-13-2012 10:37 AM)HBB Wrote:(03-13-2012 06:11 AM)crazy4cs Wrote: Import the db you want to bring on localhost first. Then, create a new empty db and list/name that db when installing MyBB.I followed your guidance as: Thats your problem. You DO NOT INSTALL MYBB Here you go let me help you: Download fresh copy of MyBB from this website. Unzip it, and Upload the files to your server DO NOT GO TO YOURSITE.COM/INSTALL Now go make a new DB <-- DATABASE MUST BE EMPTY! --> Upload all the content from your backup, with BigDump or PhpMyAdmin Now go to your MyBB Files Go to: inc/config.php Make sure your DB Name / Password / Url all reflect your correct information. |
|||
|
03-13-2012, 04:13 PM
(This post was last modified: 03-13-2012 04:20 PM by HBB.)
Post: #8
|
|||
|
|||
RE: Is it possible? -> Importing a database backup of an online forum into ...
(03-13-2012 01:23 PM)Projec13 Wrote: Unzip it, and Upload the files to your serverI'm gonna to test mybb on local host using a backup of an onile forum! Quote:DO NOT GO TO YOURSITE.COM/INSTALLI followed: 1. Creating a fresh db and importing backup -> 2. Transferring MyBB1.6.6 files to /var/www/mybb (=http://localhost/mybb) -> 3. Renaming config.default.php (which was empty) to config.php and adding db-name & usernam & password (& the other lines from "inc/config.php" of an installed MyBB), while inc/settings.php was still empty -> 4. stating a "lock" file into "install" folder -> 5. Trying for http://localhost/mybb But, this error again occurred: Code: Error Type:I checked inc/settings.php after opening this url: http://localhost/mybb -> It's included the codes/lines as it is on the online mybb. I chanched sit urls in this way: I changed from: PHP Code: $settings['bburl'] = "http://domain.com"; to: PHP Code: $settings['bburl'] = "http://localhost/mybb"; I changed from: PHP Code: $settings['homeurl'] = "http://domain.com/"; PHP Code: $settings['homeurl'] = "http://localhost/mybb/"; I changed from: PHP Code: $settings['cookiedomain'] = "domain.com";PHP Code: $settings['cookiedomain'] = "";Again, that error is permanent, what should I do? |
|||
|
03-13-2012, 05:49 PM
Post: #9
|
|||
|
|||
RE: Is it possible? -> Importing a database backup of an online forum into ...
(03-13-2012 04:13 PM)HBB Wrote:(03-13-2012 01:23 PM)Projec13 Wrote: Unzip it, and Upload the files to your serverI'm gonna to test mybb on local host using a backup of an onile forum! did you cache to the database ? this is from config.php PHP Code: /**Not in this land alone,
But be God's mercies known, From shore to shore! Lord make the nations see, That men should brothers be, And form one family, The wide world ov'er |
|||
|
03-13-2012, 07:16 PM
Post: #10
|
|||
|
|||
RE: Is it possible? -> Importing a database backup of an online forum into ... This user has been denied support.
1. Did you already installed MyBB on the localhost?
2. Is the MyBB version of your online board and localhost is same? Z5T - Dynamic URL Shortener My Plugins & Themes |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help



Is it possible? -> Importing a database backup of an online forum into ... 

This user has been denied support.

