⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
t
/
View File Name :
lowercase_table_grant.test
# Don't test with embedded server -- source include/not_embedded.inc # Test of grants when lower_case_table_names is on use mysql; # mixed-case database name for testing create database MYSQLtest; # check that database name gets forced to lowercase set @orig_sql_mode= @@sql_mode; set sql_mode= (select replace(@@sql_mode,'NO_AUTO_CREATE_USER','')); grant all on MySQLtest.* to mysqltest_1@localhost; set sql_mode= @orig_sql_mode; show grants for mysqltest_1@localhost; # now force it to mixed case, but see that it is lowercased in the acl cache select * from db where user = 'mysqltest_1'; update db set db = 'MYSQLtest' where db = 'mysqltest' and user = 'mysqltest_1' and host = 'localhost'; flush privileges; show grants for mysqltest_1@localhost; select * from db where user = 'mysqltest_1'; # clear out the user we created # # can't use REVOKE because of the mixed-case database name delete from db where db = 'MYSQLtest' and user = 'mysqltest_1' and host = 'localhost'; flush privileges; drop user mysqltest_1@localhost; drop database MYSQLtest; # End of 4.1 tests