Commit 141a5b24 authored by Monty's avatar Monty

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)
parent 813b7398
...@@ -6,9 +6,16 @@ eval LOAD DATA INFILE '$LOAD_FILE' INTO TABLE t1; ...@@ -6,9 +6,16 @@ eval LOAD DATA INFILE '$LOAD_FILE' INTO TABLE t1;
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; 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 # Test slave with wrong password
# #
save_master_pos; save_master_pos;
connection slave; connection slave;
sync_with_master; sync_with_master;
...@@ -24,6 +31,7 @@ connection master; ...@@ -24,6 +31,7 @@ connection master;
real_sleep 2; real_sleep 2;
SET PASSWORD FOR root@"localhost" = PASSWORD(''); SET PASSWORD FOR root@"localhost" = PASSWORD('');
# Give slave time to connect (will retry every second) # Give slave time to connect (will retry every second)
sleep 2; sleep 2;
CREATE TABLE t3(n INT); CREATE TABLE t3(n INT);
...@@ -80,4 +88,9 @@ SELECT n FROM t1; ...@@ -80,4 +88,9 @@ SELECT n FROM t1;
connection master; connection master;
DROP TABLE t1; DROP TABLE t1;
# resttore old passwords
replace into mysql.user select * from tmp;
drop temporary table tmp;
sync_slave_with_master; sync_slave_with_master;
...@@ -15,6 +15,7 @@ Aaron ...@@ -15,6 +15,7 @@ Aaron
Aaron Aaron
Ababa Ababa
Ababa Ababa
create temporary table tmp select * from mysql.user where host="localhost" and user="root";
connection slave; connection slave;
STOP SLAVE; STOP SLAVE;
connection master; connection master;
...@@ -65,5 +66,7 @@ n ...@@ -65,5 +66,7 @@ n
3456 3456
connection master; connection master;
DROP TABLE t1; DROP TABLE t1;
replace into mysql.user select * from tmp;
drop temporary table tmp;
connection slave; connection slave;
include/rpl_end.inc include/rpl_end.inc
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment