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
10
6
drop table if exists t1,t2;
21
17
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
23
19
connect (fail_con,localhost,root,z,test2);
24
20
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
26
21
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
24
# Now check this user with different databases
32
25
#connect (con1,localhost,test,gambling,"");
39
32
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
41
34
connect (fail_con,localhost,test,,test2);
42
35
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
44
37
connect (fail_con,localhost,test,,"");
45
38
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
47
40
connect (fail_con,localhost,test,zorro,test2);
48
41
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
50
42
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
47
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
70
49
connect (fail_con,localhost,test,,test2);
71
50
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
73
51
connect (fail_con,localhost,test,,);
74
53
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
76
55
connect (fail_con,localhost,test,zorro,test2);
77
56
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
79
57
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
63
# Bug#12517: Clear user variables and replication events before