| Author |
Post |
|
|
#1 Sun Jul 29, 2007 12:31 pm
|
|
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
|
Hi,
After doing some code modifications and adding existing mods on my test Forum, I would like to create others using my test Forum as a base.
What would be the best way to accomplish this, backup the forum folder and database (SQL dump) then upload the Forum to a new directory (changing the database info in config) and import the mysql dump into a new blank database or do a clean install, overwrite the modded files and the database?
Cheers, Gene
|
|
|
#2 Sun Jul 29, 2007 3:02 pm
|
|
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
|
You already asked this question ( see here) and I already answered it. There's no need to dump and reimport the database unless you are literally going to duplicate the forum, including all the members, forums, topics, posts, subscriptions, permissions, ...
|
|
|
#3 Sun Jul 29, 2007 3:53 pm
|
|
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
|
Dietrich wrote You already asked this question ( see here) and I already answered it. There's no need to dump and reimport the database unless you are literally going to duplicate the forum, including all the members, forums, topics, posts, subscriptions, permissions, ...
I know it was already answered but it was a bit vague. The "model" forum only has a test user (plus Admin) and the Forums are all test (which will be changed). I do want to keep everything as is and only do minor changes. Thanks, Andre
|
|
|
#4 Sun Jul 29, 2007 9:44 pm
|
|
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
|
Dietrich wrote You already asked this question ( see here) and I already answered it. There's no need to dump and reimport the database unless you are literally going to duplicate the forum, including all the members, forums, topics, posts, subscriptions, permissions, ...
That is exactly what I want to do, duplicate it. And post 7498 says: Quote You don't need to dump the dataabse and import it somewhere in order to use your PHP mods, except for when you have altered the database (and still, there's no need to copy over all the content).
I already altered the database with default options the users can't override so it would be faster to simply drop everything in the new DB and import the modified sql dump, wouldn't it? Cheers, Gene
|
|
|
#5 Sun Jul 29, 2007 10:39 pm
|
|
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
|
There's a couple ways that I "duplicate" my databases. You can do it by just using the same mysql username and database for each UseBB installation. So that each UseBB installation goes off of the same MySQL database, automatic duplication. OR. If you want to just transfer your database, you would have to do the export/import the database. For example: You have Install 1 and Install 2 and want to have both installs have the same data? Use same MySQL username and password. You have Install 1 and Install 2 and want to move Install 1's database to Install 2? Export Install 1's database, and import into Install 2's database.
|
|
|
#6 Sun Jul 29, 2007 10:53 pm
|
|
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
|
Easy enough, create a new db, drop the tables and restore from my "model" db dump using phpmyadmin.
What if I want to replicate the site also (after all the modding and code changes I made), should I just do a fresh install then overwrite the changed files (if I remember all of them, LOL) or simply upload a local backup copy to a new folder?
Thanks for your help Gaia, I really appreciate it. Gene
|
|
|
#7 Sun Jul 29, 2007 10:56 pm
|
|
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
|
You really shouldn't have to re-install UseBB then overwrite all the files again. Just upload all your modded files, edit config.php with your database information, then import your database.
|
|
|
#8 Sun Jul 29, 2007 10:59 pm
|
|
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
|
Fantastic, thanks again!
Gene
|