Bug #57098 | RBR breaks on changing user password on 5.1 master -> 5.5 slave | ||
---|---|---|---|
Submitted: | 29 Sep 2010 12:34 | Modified: | 15 Nov 2010 19:40 |
Reporter: | Nidhi Shrotriya | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.5.6-rc, 5.1 | OS: | Any |
Assigned to: | Alfranio Tavares Correia Junior | CPU Architecture: | Any |
[29 Sep 2010 12:34]
Nidhi Shrotriya
[5 Oct 2010 23:38]
Alfranio Tavares Correia Junior
The problem happens because the mysql.user's definition in the master is different from the slave. There is an additional field in the slave's mysql.user ... `Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', + `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '', `ssl_cipher` blob NOT NULL, `x509_issuer` blob NOT NULL, ... And in RBR, the SET PASSWORD is replicated in row format and triggers the following error: "Column 32 of table 'mysql.user' cannot be converted from type 'tinyblob' to type 'enum('','ANY','X509','SPECIFIED'': MASTER.Trigger_priv -ok-> SLAVE.Trigger_priv MASTER.ssl_type -ok-> SLAVE.tablespave_priv MASTER.ssl_cipher -XX-> SLAVE.slave_type
[6 Oct 2010 10:21]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/120084 3523 Alfranio Correia 2010-10-06 BUG#57098 RBR breaks on changing user password on 5.1 master -> 5.5 slave Backported the patch for BUG#55452.
[10 Oct 2010 20:27]
Alfranio Tavares Correia Junior
Patch queued to 5.1-bugteam --> 5.5-bugteam --> trunk-merge
[10 Oct 2010 21:33]
Alfranio Tavares Correia Junior
This patch enables to replicate the SET PASSWORD from >=5.1.53 to 5.5. See BUG#57357 for information on <5.1.53 to 5.5.
[13 Oct 2010 13:07]
Jon Stephens
Documented bugfix in the 5.5.7 changelog, as follows: SET PASSWORD caused row-based replication to fail between a MySQL 5.1 master and a MySQL 5.5 slave. This fix makes it possible to replicate SET PASSWORD correctly from a master running MySQL 5.1.53 or a later MySQL 5.1 release to a slave running MySQL 5.5.7 or a later MySQL 5.5 release. See also BUG#57357 and BUG#55452. Set NM status, waiting for push to 5.6.
[13 Oct 2010 13:47]
Jon Stephens
Discussed with Alfranio, no new merges expected, closing.
[13 Oct 2010 14:59]
Alfranio Tavares Correia Junior
Note that backport is backward compatible.
[13 Oct 2010 15:02]
Jon Stephens
Disregard previous comment, closed in error. returned to NM status.
[29 Oct 2010 17:10]
Jon Stephens
Already documented in the 5.1.53, 5.57, and 5.6.1 changelogs. Closing.
[9 Nov 2010 19:48]
Bugs System
Pushed into mysql-5.5 5.5.7-rc (revid:sunanda.menon@sun.com-20101109182959-otkxq8vo2dcd13la) (version source revid:sunanda.menon@sun.com-20101109182959-otkxq8vo2dcd13la) (merge vers: 5.5.7-rc) (pib:21)
[13 Nov 2010 16:20]
Bugs System
Pushed into mysql-trunk 5.6.99-m5 (revid:alexander.nozdrin@oracle.com-20101113155825-czmva9kg4n31anmu) (version source revid:alexander.nozdrin@oracle.com-20101113152450-2zzcm50e7i4j35v7) (merge vers: 5.6.1-m4) (pib:21)
[13 Nov 2010 16:39]
Bugs System
Pushed into mysql-next-mr (revid:alexander.nozdrin@oracle.com-20101113160336-atmtmfb3mzm4pz4i) (version source revid:vasil.dimov@oracle.com-20100629074804-359l9m9gniauxr94) (pib:21)
[15 Nov 2010 19:40]
Jon Stephens
No new changelogs entries required. Closed.
[18 Nov 2010 15:55]
Bugs System
Pushed into mysql-5.1 5.1.54 (revid:build@mysql.com-20101118153531-693taxtxyxpt037i) (version source revid:build@mysql.com-20101118153531-693taxtxyxpt037i) (merge vers: 5.1.54) (pib:21)