Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
mk-table-sync using different src and dst db names.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Juntgen  
View profile  
 More options Mar 28 2011, 2:36 pm
From: David Juntgen <djunt...@gmail.com>
Date: Mon, 28 Mar 2011 14:36:08 -0400
Local: Mon, Mar 28 2011 2:36 pm
Subject: mk-table-sync using different src and dst db names.

Hello,

It appears that mk-table-sync does not allow sync'ing from a src database to
a different dst database.

I have a read only database that needs to be sync'ed to other servers
nightly and mysqldump / import is taking too long.  I would like to use
mk-table-sync to compare and update any deltas of the two DBs.  The source
database has the exact same table structure has the destination database,
the only difference is the database name.

So I'm wanting to do :

mk-table-sync --print --verbose  --ignore-tables
NPI_ids,NPI_load h=1,u=,p=,D=rxdb_load h=2,u=t,p=,D=rxdb_v1

Basically two DSN's with different "D="'s.

Thoughts?

Regards,

--Dave

--
David W. Juntgen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Baron Schwartz  
View profile  
 More options Mar 31 2011, 1:56 pm
From: Baron Schwartz <ba...@xaprb.com>
Date: Thu, 31 Mar 2011 13:56:42 -0400
Local: Thurs, Mar 31 2011 1:56 pm
Subject: Re: [maatkit-discuss] mk-table-sync using different src and dst db names.
David,

This is a limitation we (at Percona) haven't needed to fix ourselves,
although others have requested it a few times. From the docs,

       --databases
           short form: -d; type: hash

           Sync only this comma-separated list of databases.

           A common request is to sync tables from one database with tables
           from another database on the same or different server.  This is not
           yet possible.  "--databases" will not do it, and you can’t do it
           with the D part of the DSN either because in the absence of a table
           name it assumes the whole server should be synced and the D part
           controls only the connection’s default database.

Thanks,
Baron

--
Baron Schwartz
Percona Inc <http://www.percona.com/>
Consulting, Training, Support & Services for MySQL

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »