Commit 8aeba900 authored by unknown's avatar unknown

Merge work:/home/bk/mysql

into mysql.sashanet.com:/home/sasha/src/bk/mysql

parents 8dada463 fa33f498
...@@ -7,5 +7,11 @@ sum(length(word)) ...@@ -7,5 +7,11 @@ sum(length(word))
0 0
count(*) count(*)
10 10
select_priv user
N blafasel2
select_priv user
Y blafasel2
n n
3456 3456
select_priv user
Y blafasel2
...@@ -71,10 +71,18 @@ connection master1; ...@@ -71,10 +71,18 @@ connection master1;
drop table t1; drop table t1;
create table t1 (n int); create table t1 (n int);
insert into t1 values(3456); insert into t1 values(3456);
use mysql;
insert into user (Host, User, Password)
VALUES ("10.10.10.%", "blafasel2", "blafasel2");
select select_priv,user from mysql.user where user = 'blafasel2';
update user set Select_priv = "Y" where User="blafasel2";
select select_priv,user from mysql.user where user = 'blafasel2';
use test;
save_master_pos; save_master_pos;
connection slave; connection slave;
sync_with_master; sync_with_master;
select n from t1; select n from t1;
select select_priv,user from mysql.user where user = 'blafasel2';
connection master1; connection master1;
drop table t1; drop table t1;
save_master_pos; save_master_pos;
......
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