用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.1 KiB

# shut server down
# Server is down
#
# Bug #20546898: MYSQLD --INIT-FILE DOESN\'T ACCEPT GRANT STATEMENTS
#
# create bootstrap file with ACL commands
# Run the server with --initialize --init-file
extract the root password
password found
# Restart the server against DDIR
# connect as root
# reset the password
SET PASSWORD='';
# Must have USAGE
SHOW GRANTS FOR u1@localhost;
Grants for u1@localhost
GRANT USAGE ON *.* TO `u1`@`localhost`
# Must have a SELECT privilege
SHOW GRANTS FOR u3@localhost;
Grants for u3@localhost
GRANT SELECT ON `grants_try`.* TO `u3`@`localhost`
GRANT USAGE ON *.* TO `u3`@`localhost`
# Must have a password
SHOW CREATE USER u2@localhost;
CREATE USER for u2@localhost
CREATE USER 'u2'@'localhost' IDENTIFIED WITH '<default_auth_plugin>' AS '<password_hash>' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK PASSWORD HISTORY DEFAULT PASSWORD REUSE INTERVAL DEFAULT PASSWORD REQUIRE CURRENT DEFAULT
# shut server down
# Server is down
# close the test connection
# remove the password file
# delete mysqld log
# delete bootstrap file
# delete datadir
#
# Cleanup
#
# Restarting the server