21
21
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
23
23
connect (fail_con,localhost,root,z,test2);
24
24
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
26
25
connect (fail_con,localhost,root,z,);
28
grant ALL on *.* to test@localhost identified by "gambling";
29
grant ALL on *.* to test@127.0.0.1 identified by "gambling";
31
28
# Now check this user with different databases
32
29
#connect (con1,localhost,test,gambling,"");
39
36
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
41
38
connect (fail_con,localhost,test,,test2);
42
39
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
44
41
connect (fail_con,localhost,test,,"");
45
42
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
47
44
connect (fail_con,localhost,test,zorro,test2);
48
45
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
50
46
connect (fail_con,localhost,test,zorro,);
53
# check if old password version also works
54
update mysql.user set password=old_password("gambling2") where user=_binary"test";
57
connect (con10,localhost,test,gambling2,);
58
connect (con5,localhost,test,gambling2,mysql);
62
set password='gambling3';
63
set password=old_password('gambling3');
65
connect (con6,localhost,test,gambling3,test);
68
51
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
70
53
connect (fail_con,localhost,test,,test2);
71
54
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
73
55
connect (fail_con,localhost,test,,);
74
57
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
76
59
connect (fail_con,localhost,test,zorro,test2);
77
60
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
79
61
connect (fail_con,localhost,test,zorro,);
82
# remove user 'test' so that other tests which may use 'test'
83
# do not depend on this test.
85
delete from mysql.user where user=_binary"test";
89
67
# Bug#12517: Clear user variables and replication events before