2
2
# with right and wrong password, with and without database
3
3
# Unfortunately the check is incomplete as we can't connect without database
5
# check that CSV engine was compiled in, as the test relies on the presence
6
# of the log tables (which are CSV-based). By connect mysql; show tables;
7
--source include/have_csv.inc
6
10
drop table if exists t1,t2;
17
21
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
19
23
connect (fail_con,localhost,root,z,test2);
20
24
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
21
26
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";
24
31
# Now check this user with different databases
25
32
#connect (con1,localhost,test,gambling,"");
32
39
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
34
41
connect (fail_con,localhost,test,,test2);
35
42
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
37
44
connect (fail_con,localhost,test,,"");
38
45
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
40
47
connect (fail_con,localhost,test,zorro,test2);
41
48
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
42
50
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);
47
68
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
49
70
connect (fail_con,localhost,test,,test2);
50
71
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
51
73
connect (fail_con,localhost,test,,);
53
74
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
55
76
connect (fail_con,localhost,test,zorro,test2);
56
77
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
57
79
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";
63
89
# Bug#12517: Clear user variables and replication events before