~vlad-lesin/percona-server/5.5-mysqlbinlog-replacedb

  • Committer: Vlad Lesin
  • Date: 2014-02-15 00:06:35 UTC
  • Revision ID: vladislav.lesin@percona.com-20140215000635-o7z1p7kinrgv6w6m
Port --rewrite-db mysqlbinlog option from 5.1.

--rewrite-db is a string option which allows to replace one db-name to another
in mysqlbinlog output. The format of the string value is the following:
"from1->to1,from2->to2,from3->to3". Where "to[123]" are the names to which
the correspondent "from[123]" names must be replaced.

The original implementation does not replace db names in statements for
statement-based binlog, it just replaces db name of binlog event and issues
"USE" statement with replaced db name if necessary. I think this restriction
concerned with unwillingness to implement complex logic for parsing db names
from statements for such simple feature.

But for row-based binlog it replaces db names in statements correctly because
each table name is mapped to some number in binlog and it is quite easy to
extract such table ids from binlog event and replace one name by another.
Filename Latest Rev Last Changed Committer Comment Size
..
build 298.1.4 11 years ago Stewart Smith merge 5.1.63.13.4 release branch from 5.1. Resolve Diff
doc 288.2.1 11 years ago Stewart Smith merge theme-makefile-5.1 from 5.1 tree. This basic Diff
HandlerSocket-Plugin-for-MySQL 333.3.1 11 years ago Ignacio Nin Merge HandlerSocket update from 5.1 See merged co Diff
Percona-Server 239.4.1 12 years ago Alexey Kopytov Null merge from 5.1 to reconcile our 5.1 and 5.5 b Diff
policy 460.7.1 11 years ago Raghavendra D Prabhu Bug #1131102: Provide SELinux policy for PXC. Thi Diff
python-for-subunit2junitxml 484.4.2 11 years ago Laurynas Biveinis Merge percona_userstat testcase from 5.1, partiall Diff
UDF 484.4.2 11 years ago Laurynas Biveinis Merge percona_userstat testcase from 5.1, partiall Diff
.bzrignore 544.7.1 10 years ago Hrvoje Matijakovic - created list of system and status variables int 47 bytes Diff Download File
COPYING.innodb-deadlock-count-patch 10 13 years ago Oleg Tsarev propogate Oleg's patches 1.6 KB Diff Download File
COPYING.show_temp_51 484.4.2 11 years ago Laurynas Biveinis Merge percona_userstat testcase from 5.1, partiall 1.6 KB Diff Download File
handlersocket.patch 333.3.1 11 years ago Ignacio Nin Merge HandlerSocket update from 5.1 See merged co 1.2 KB Diff Download File
Makefile 590 10 years ago Laurynas Biveinis Null-merge lp:percona-server/5.1 rev 595 3.1 KB Diff Download File
README.HandlerSocket 333.3.1 11 years ago Ignacio Nin Merge HandlerSocket update from 5.1 See merged co 508 bytes Diff Download File
File subunit2junitxml 484.4.2 11 years ago Laurynas Biveinis Merge percona_userstat testcase from 5.1, partiall 2.2 KB Diff Download File
File uninstall_tests.sh 10 13 years ago Oleg Tsarev propogate Oleg's patches 629 bytes Diff Download File