List:General Discussion« Previous MessageNext Message »
From:Olaf Stein Date:January 28 2009 5:53pm
Subject:RE: questions about merging
View as plain text  
Robert,

the import of the dump will not remove your other tables unless there is a naming
conflict, then the table will be overwritten. As far as the prefix goes you can edit the
dump file, find the create table statement for each table and add the prefix. If you have
lots of tables or a huge dump file it might make sense to use a more automated approach,
perl or python scripts will work on most platforms. The prefix will also make sure you
have no naming conflicts I guess

Olaf


-----Original Message-----
From: news on behalf of Robert D. Crawford
Sent: Wed 1/28/2009 11:39 AM
To: mysql@stripped
Subject:  questions about merging 
 
Hello all,

I hope I get the terminology right.  I am not sure merge is what I want,
so let me describe what I need.

I have a sql dump from a db that is a mediawiki.  I cannot upgrade the
software on the old server and need to move it to a new server.  I have
only one db available to me on the new server that currently holds a
wordpress blog.  As I understand it this should be no problem as long as
the table names do not conflict, right?

I know the command for restoring the db from the mysql command prompt.

First, I want to make sure that doing 

mysql -p <dbname> < dump.sql

is not going to hose the current db.  Next I want to find out if there
is an easy way to change the table names.  I need the tables prefixed
with the wiki name.

Can anyone help me to figure out the easiest and safest way to
accomplish this?  If any more information is needed I can get it for
you, I'm sure.

Thanks in advance for any help or pointers to relevant documentation,

rdc
-- 
Robert D. Crawford                                      rdc1x@stripped


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=1




----------------------------------------- Confidentiality Notice:
The following mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain confidential
and privileged information. The recipient is responsible to
maintain the confidentiality of this information and to use the
information only for authorized purposes. If you are not the
intended recipient (or authorized to receive information for the
intended recipient), you are hereby notified that any review, use,
disclosure, distribution, copying, printing, or action taken in
reliance on the contents of this e-mail is strictly prohibited. If
you have received this communication in error, please notify us
immediately by reply e-mail and destroy all copies of the original
message. Thank you.
Thread
questions about merging Robert D. Crawford28 Jan
  • RE: questions about merging Olaf Stein28 Jan
  • Re: questions about mergingRobert D. Crawford29 Jan
    • Re: questions about mergingClaudio Nanni30 Jan
      • Re: questions about mergingOlaf Stein30 Jan
      • Re: questions about mergingRobert D. Crawford30 Jan
        • Re: questions about mergingWalter Heck1 Feb
      • Re: questions about mergingRobert D. Crawford1 Feb
        • Re: questions about mergingWalter Heck1 Feb
    • Re: questions about mergingSteve Holmes1 Feb