1
# This test is to check various cases of connections
2
# with right and wrong password, with and without database
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
drop table if exists t1,t2;
14
#connect (con1,localhost,root,,"");
16
connect (con1,localhost,root,,mysql);
18
connect (con2,localhost,root,,test);
21
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
23
connect (fail_con,localhost,root,z,test2);
24
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
25
connect (fail_con,localhost,root,z,);
28
# Now check this user with different databases
29
#connect (con1,localhost,test,gambling,"");
31
connect (con3,localhost,test,gambling,mysql);
33
connect (con4,localhost,test,gambling,test);
36
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
38
connect (fail_con,localhost,test,,test2);
39
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
41
connect (fail_con,localhost,test,,"");
42
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
44
connect (fail_con,localhost,test,zorro,test2);
45
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
46
connect (fail_con,localhost,test,zorro,);
51
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
53
connect (fail_con,localhost,test,,test2);
54
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
55
connect (fail_con,localhost,test,,);
57
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
59
connect (fail_con,localhost,test,zorro,test2);
60
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
61
connect (fail_con,localhost,test,zorro,);
67
# Bug#12517: Clear user variables and replication events before
68
# closing temp tables in thread cleanup.
69
connect (con7,localhost,root,,test);
71
create table t1 (id integer not null auto_increment primary key);
72
create temporary table t2(id integer not null auto_increment primary key);
74
delete from t1 where id like @id;
85
--echo # ------------------------------------------------------------------
86
--echo # -- End of 4.1 tests
87
--echo # ------------------------------------------------------------------
89
--echo # ------------------------------------------------------------------
90
--echo # -- End of 5.1 tests
91
--echo # ------------------------------------------------------------------