1
# Don't test with embedded server
2
-- source include/not_embedded.inc
4
# Test of grants when lower_case_table_names is on
7
# mixed-case database name for testing
8
create database MYSQLtest;
10
# check that database name gets forced to lowercase
11
grant all on MySQLtest.* to mysqltest_1@localhost;
12
show grants for mysqltest_1@localhost;
14
# now force it to mixed case, but see that it is lowercased in the acl cache
15
select * from db where user = 'mysqltest_1';
16
update db set db = 'MYSQLtest' where db = 'mysqltest' and user = 'mysqltest_1' and host = 'localhost';
18
show grants for mysqltest_1@localhost;
19
select * from db where user = 'mysqltest_1';
21
# clear out the user we created
23
# can't use REVOKE because of the mixed-case database name
24
delete from db where db = 'MYSQLtest' and user = 'mysqltest_1' and host = 'localhost';
26
drop user mysqltest_1@localhost;
28
drop database MYSQLtest;