Skip to content
Permalink
Browse files
rpl_row_001.test failed in internal check
Problem was as part of SET PASSWORD FOR ROOT, mysql.user table changed
compared to how it was originally created. (plugin changed value)
  • Loading branch information
montywi committed Jul 14, 2018
1 parent 813b739 commit 141a5b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
@@ -6,9 +6,16 @@ eval LOAD DATA INFILE '$LOAD_FILE' INTO TABLE t1;
eval LOAD DATA INFILE '$LOAD_FILE' INTO TABLE t1;
SELECT * FROM t1 ORDER BY word LIMIT 10;

#
# Save password row for root
#

create temporary table tmp select * from mysql.user where host="localhost" and user="root";

#
# Test slave with wrong password
#

save_master_pos;
connection slave;
sync_with_master;
@@ -24,6 +31,7 @@ connection master;
real_sleep 2;
SET PASSWORD FOR root@"localhost" = PASSWORD('');
# Give slave time to connect (will retry every second)

sleep 2;

CREATE TABLE t3(n INT);
@@ -80,4 +88,9 @@ SELECT n FROM t1;

connection master;
DROP TABLE t1;

# resttore old passwords
replace into mysql.user select * from tmp;
drop temporary table tmp;

sync_slave_with_master;
@@ -15,6 +15,7 @@ Aaron
Aaron
Ababa
Ababa
create temporary table tmp select * from mysql.user where host="localhost" and user="root";
connection slave;
STOP SLAVE;
connection master;
@@ -65,5 +66,7 @@ n
3456
connection master;
DROP TABLE t1;
replace into mysql.user select * from tmp;
drop temporary table tmp;
connection slave;
include/rpl_end.inc

0 comments on commit 141a5b2

Please sign in to comment.