2 # Specific tests for case sensitive file systems
3 # i.e. lower_case_filesystem=OFF
5 -- source include/have_case_sensitive_file_system.inc
6 -- source include/not_embedded.inc
8 connect (master,localhost,root,,);
11 grant all on d1.* to 'sample'@'localhost' identified by 'password';
14 connect (sample,localhost,sample,password,d1);
17 --error ER_DBACCESS_DENIED_ERROR
19 --error ER_DBACCESS_DENIED_ERROR
22 --source include/wait_until_disconnected.inc
25 drop user 'sample'@'localhost';
26 drop database if exists d1;
28 --source include/wait_until_disconnected.inc
34 # Bug#41049 does syntax "grant" case insensitive?
38 CREATE TABLE T1(f1 INT);
39 CREATE TABLE t1(f1 INT);
40 GRANT SELECT ON T1 to user_1@localhost;
42 connect (con1,localhost,user_1,,d1);
43 --error ER_TABLEACCESS_DENIED_ERROR
47 GRANT SELECT ON t1 to user_1@localhost;
49 select * from information_schema.table_privileges;
53 REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost;
54 DROP USER user_1@localhost;
60 CREATE PROCEDURE p1() BEGIN END;
61 CREATE FUNCTION f1(i INT) RETURNS INT RETURN i+1;
63 GRANT USAGE ON db1.* to user_1@localhost;
64 GRANT EXECUTE ON PROCEDURE db1.P1 to user_1@localhost;
65 GRANT EXECUTE ON FUNCTION db1.f1 to user_1@localhost;
66 GRANT UPDATE ON db1.* to USER_1@localhost;
68 connect (con1,localhost,user_1,,db1);
72 connect (con2,localhost,USER_1,,db1);
73 --error ER_PROCACCESS_DENIED_ERROR
75 --error ER_PROCACCESS_DENIED_ERROR
77 --error ER_PROCACCESS_DENIED_ERROR
84 REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost;
85 REVOKE ALL PRIVILEGES, GRANT OPTION FROM USER_1@localhost;
88 DROP USER user_1@localhost;
89 DROP USER USER_1@localhost;