Hello Mauro do Carmo,
Try to edit the actualy SQL file and change any reference from
db_domain to db_tes_domain. This should fix your problems.
I hope that this helps,
Kasimir Gabert
On 10/20/06, Mauro do Carmo <mauro(a)carmo.info> wrote:
Thank you so much Kasimir,
I've learned a lot from your words... My case is the last one. I get it. And I've
tried it, but I have this problems:
1) I've dumped my db_domain, but when I tried to up load it in order to creat my
second db_tes_domain, I've got the following
massage from phpMyAdmin: 'bd_domain already exist';
Any clue?
Thanks a lot,
mauro.
___________________________________________________________________________
My wiki is based in the following configuration:
Host:
MediaWiki: 1.6.8
PHP: 4.3.11 (apache)
MySQL: 4.1.20-max-log
phpMyAdmin - 2.8.0.1
Client:
Win XP
___________________________________________
|-----Original Message-----
|From: mediawiki-l-bounces(a)Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On
Behalf Of
|Kasimir Gabert
|Sent: Friday, October 20, 2006 1:28 PM
|To: MediaWiki announcements and site admin list
|Subject: Re: [Mediawiki-l] Site mirror or copy
|
|Hello Mauro do Carmo,
|
|Do you want this wiki to have the same information, and have it work
|so that if one user edits something on wiki A then the edit will
|appear on wiki B? If you do, then all that you need to do is create a
|symlink (using ln -s) to the wiki A folder.
|
|If you want to create a copy of the wiki and use the same database
|(same edits, maybe different skins or settings), then you should keep
|the same database, and just copy the files from one folder to another.
|
|If you want to create two completely independent wikis but have one
|based on the other (a copy right now, changes will be made to each and
|they will soon become different), then you need to download the entire
|database to a file (use the command mysqldump) and upload all of the
|tables into a new database (if you have only one database available
|then just change all of the table names). You will then need to go
|into LocalSettings.php for your new wiki and change all of the
|database information so it is correct for either your new database or
|different table names.
|
|I hope that this helps,
|Kasimir Gabert
|
|On 10/20/06, Mauro do Carmo <mauro(a)carmo.info> wrote:
|> Thanks Kasimir,
|>
|> That is great, but I looking for something simpler.
|>
|> Basically, I want two different wikis. One completely copy. Since my host is a
linux account I have
|no problem in creating two
|> folders like:
|>
|>
domain.com;
|> and,
test.domain.com;
|>
|> There are three I have to do:
|>
|> 1) copy all folder wiki from
domain.com to
test.domain.com;
|> 2) copy the db_domain and creat a second db_test_domain;
|> 3) make sure the new address
www.test.domain.com is going to work with the new
copied information
|from
www.domain.com;
|>
|> The first step is easy, but for the other two I need some help.
|>
|> Thanks again,
|> mauro.
|>
|>
|>
|> |-----Original Message-----
|> |From: mediawiki-l-bounces(a)Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]
On Behalf Of
|> |Kasimir Gabert
|> |Sent: Thursday, October 19, 2006 4:05 PM
|> |To: MediaWiki announcements and site admin list
|> |Subject: Re: [Mediawiki-l] Site mirror or copy
|> |
|> |Hello Mauro do Carmo,
|> |
|> |I am doing the same thing on my wiki, and here is how I have it set up.
|> |
|> |In Apache I have both of the websites configured to use the same
|> |document root. Because I have different settings on the different
|> |wikis, I have
|> |
|> |==========
|> |$wiki1 = strpos($_SERVER['HTTP_HOST'],"wiki1.domain.com");
|> |if ($wiki1 === false)
|> |{
|> |// Wiki 1 stuff here
|> |}
|> |else
|> |{
|> |// Wiki 2 stuff here
|> |}
|> |==========
|> |
|> |in my LocalSettings.php file.
|> |
|> |I hope that this helps,
|> |Kasimir Gabert
|> |
|> |On 10/19/06, Mauro do Carmo <mauro(a)carmo.info> wrote:
|> |> Let me tray in another way:
|> |>
|> |> I have a site located at
www.domain.com.
|> |>
|> |> I want a real copy of all content of my site accessible in a different
address like
|> |www.test.domain.com.
|> |>
|> |> That is very important to me,
|> |> so if someone could give some hints,
|> |> I will really appreciate that,
|> |> thanks again,
|> |> mauro.
|> |>
|> |>
|> |>
|> |> |-----Original Message-----
|> |> |From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of
|> |Mauro
|> |> |do Carmo
|> |> |Sent: Wednesday, October 18, 2006 3:27 PM
|> |> |To: 'MediaWiki announcements and site admin list'
|> |> |Subject: [Mediawiki-l] Site mirror or copy
|> |> |
|> |> |Hello,
|> |> |
|> |> |I would like to create a copy of my wiki in a diferent address. Today this
is my situation:
|> |> |
|> |> |Http://www.mydomain.com (problem 1)
|> |> |DB_mydomain ___________(problem 2)
|> |> |Files of mydomain in my host (easy to download and upload in my new folder)
|> |> |
|> |> |_______Problem 1
|> |> |It is going to be a different domain, so how can I adjust this change in my
wiki? It is
|automatic?
|> |> |
|> |> |_______Problem 2
|> |> |All the time I try to upload my DB_mydomain, I get a massage telling me that
there is already a
|> |> |Databank with this name. I just
|> |> |don't know what to do...
|> |> |
|> |> |Thanks a lot,
|> |> |mauro.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l