mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / r / lowercase_fs_off.result
blob4a59801692d9217bc7d293a910005f0205596083
1 create database d1;
2 grant all on d1.* to 'sample'@'localhost' identified by 'password';
3 flush privileges;
4 select database();
5 database()
6 d1
7 create database d2;
8 ERROR 42000: Access denied for user 'sample'@'localhost' to database 'd2'
9 create database D1;
10 ERROR 42000: Access denied for user 'sample'@'localhost' to database 'D1'
11 drop user 'sample'@'localhost';
12 drop database if exists d1;
13 CREATE DATABASE d1;
14 USE d1;
15 CREATE TABLE T1(f1 INT);
16 CREATE TABLE t1(f1 INT);
17 GRANT SELECT ON T1 to user_1@localhost;
18 select * from t1;
19 ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1'
20 select * from T1;
22 GRANT SELECT ON t1 to user_1@localhost;
23 select * from information_schema.table_privileges;
24 GRANTEE TABLE_CATALOG   TABLE_SCHEMA    TABLE_NAME      PRIVILEGE_TYPE  IS_GRANTABLE
25 'user_1'@'localhost'    NULL    d1      T1      SELECT  NO
26 'user_1'@'localhost'    NULL    d1      t1      SELECT  NO
27 REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost;
28 DROP USER user_1@localhost;
29 DROP DATABASE d1;
30 USE test;
31 CREATE DATABASE db1;
32 USE db1;
33 CREATE PROCEDURE p1() BEGIN END;
34 CREATE FUNCTION f1(i INT) RETURNS INT RETURN i+1;
35 GRANT USAGE ON db1.* to user_1@localhost;
36 GRANT EXECUTE ON PROCEDURE db1.P1 to user_1@localhost;
37 GRANT EXECUTE ON FUNCTION db1.f1 to user_1@localhost;
38 GRANT UPDATE ON db1.* to USER_1@localhost;
39 call p1();
40 call P1();
41 select f1(1);
42 f1(1)
44 call p1();
45 ERROR 42000: execute command denied to user 'USER_1'@'localhost' for routine 'db1.p1'
46 call P1();
47 ERROR 42000: execute command denied to user 'USER_1'@'localhost' for routine 'db1.p1'
48 select f1(1);
49 ERROR 42000: execute command denied to user 'USER_1'@'localhost' for routine 'db1.f1'
50 REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost;
51 REVOKE ALL PRIVILEGES, GRANT OPTION FROM USER_1@localhost;
52 DROP FUNCTION f1;
53 DROP PROCEDURE p1;
54 DROP USER user_1@localhost;
55 DROP USER USER_1@localhost;
56 DROP DATABASE db1;
57 use test;