mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
a3099a3b4a
Also increase user name up to 128. The work was started by Rucha Deodhar <rucha.deodhar@mariadb.com>, contains audit plugin fixes by Alexey Botchkov <holyfoot@askmonty.org>.
65 lines
3.3 KiB
Text
65 lines
3.3 KiB
Text
include/master-slave.inc
|
|
[connection master]
|
|
include/rpl_reset.inc
|
|
connection master;
|
|
set sql_log_bin=0;
|
|
grant replication slave on *.* to rpl32@127.0.0.1 identified by '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef';
|
|
set sql_log_bin=1;
|
|
connection slave;
|
|
include/stop_slave.inc
|
|
change master to master_user='rpl32',master_password='0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef';
|
|
include/start_slave.inc
|
|
connection master;
|
|
drop table if exists t1;
|
|
Warnings:
|
|
Note 1051 Unknown table 'test.t1'
|
|
create table t1 (i int);
|
|
insert into t1 values (1);
|
|
connection slave;
|
|
[ synchronized ]
|
|
connection master;
|
|
set sql_log_bin=0;
|
|
grant replication slave on *.* to rpl33@127.0.0.1 identified by '0123456789abcdef0123456789abcdef!';
|
|
set sql_log_bin=1;
|
|
connection slave;
|
|
include/stop_slave.inc
|
|
change master to master_user='rpl33',master_password='0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef!';
|
|
ERROR HY000: String '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef012...' is too long for MASTER_PASSWORD (should be no longer than 96)
|
|
change master to master_user='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
|
|
ERROR HY000: String 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...' is too long for MASTER_USER (should be no longer than 128)
|
|
change master to master_host='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddE';
|
|
ERROR HY000: String 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbb...' is too long for MASTER_HOST (should be no longer than 255)
|
|
connection master;
|
|
set sql_log_bin=0;
|
|
grant replication slave on *.* to rpl16cyr@127.0.0.1 identified by 'воттакойужпарольвоттакойужпарольвоттакойужпароль';
|
|
set sql_log_bin=1;
|
|
connection slave;
|
|
SET NAMES utf8;
|
|
change master to master_user='rpl16cyr',master_password='воттакойужпарольвоттакойужпарольвоттакойужпароль';
|
|
include/start_slave.inc
|
|
connection master;
|
|
drop table if exists t1;
|
|
create table t1 (i int);
|
|
insert into t1 values (1);
|
|
connection slave;
|
|
[ synchronized ]
|
|
connection master;
|
|
set sql_log_bin=0;
|
|
grant replication slave on *.* to rpl17mix@127.0.0.1 identified by 'воттакойужпарольвоттакойужпарольвоттакойужпароль!';
|
|
set sql_log_bin=1;
|
|
connection slave;
|
|
include/stop_slave.inc
|
|
change master to master_user='rpl17mix',master_password='воттакойужпарольвоттакойужпарольвоттакойужпароль!';
|
|
ERROR HY000: String 'воттакойужпарольвоттакойужпарольв...' is too long for MASTER_PASSWORD (should be no longer than 96)
|
|
connection master;
|
|
set sql_log_bin=0;
|
|
drop user rpl32@127.0.0.1, rpl33@127.0.0.1, rpl16cyr@127.0.0.1, rpl17mix@127.0.0.1;
|
|
set sql_log_bin=1;
|
|
connection slave;
|
|
change master to master_user='root',master_password='';
|
|
include/start_slave.inc
|
|
connection master;
|
|
drop table if exists t1;
|
|
connection slave;
|
|
connection master;
|
|
include/rpl_end.inc
|