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
6
drop table if exists t1,t2;
10
#connect (con1,localhost,root,,"");
12
connect (con1,localhost,root,,mysql);
14
connect (con2,localhost,root,,test);
17
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
19
connect (fail_con,localhost,root,z,test2);
20
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
21
connect (fail_con,localhost,root,z,);
24
# Now check this user with different databases
25
#connect (con1,localhost,test,gambling,"");
27
connect (con3,localhost,test,gambling,mysql);
29
connect (con4,localhost,test,gambling,test);
32
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
34
connect (fail_con,localhost,test,,test2);
35
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
37
connect (fail_con,localhost,test,,"");
38
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
40
connect (fail_con,localhost,test,zorro,test2);
41
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
42
connect (fail_con,localhost,test,zorro,);
47
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
49
connect (fail_con,localhost,test,,test2);
50
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
51
connect (fail_con,localhost,test,,);
53
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
55
connect (fail_con,localhost,test,zorro,test2);
56
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
57
connect (fail_con,localhost,test,zorro,);
63
# Bug#12517: Clear user variables and replication events before
64
# closing temp tables in thread cleanup.
65
connect (con7,localhost,root,,test);
67
create table t1 (id integer not null auto_increment primary key);
68
create temporary table t2(id integer not null auto_increment primary key);
70
delete from t1 where id like @id;
81
--echo # ------------------------------------------------------------------
82
--echo # -- End of 4.1 tests
83
--echo # ------------------------------------------------------------------
85
--echo # ------------------------------------------------------------------
86
--echo # -- End of 5.1 tests
87
--echo # ------------------------------------------------------------------