Debian Codegraph @

mysql-test/suite/connection_control/inc/cleanup_proxy_accounts.inc

raw
1 disable_query_log;
2 disable_result_log;
3 # Revoke proxy grants
4 REVOKE PROXY ON proxied@localhost FROM u1@localhost, u2@localhost, u3@localhost;
5
6 # Drop proxy users
7 DROP USER u1@localhost, u2@localhost, u3@localhost;
8
9 # Drop proxied user
10 DROP USER proxied@localhost;
11
12 # Uninstall test_plugin_server
13 UNINSTALL PLUGIN test_plugin_server;
14
15 # Remove plugin library
16 let $auth_plugin_path= `SELECT SUBSTR('$PLUGIN_AUTH_OPT/$PLUGIN_AUTH', 14)`;
17 let $connection_control_plugin_path= `SELECT SUBSTR('$CONNECTION_CONTROL_PLUGIN_OPT/$PLUGIN_AUTH', 14)`;
18
19 if ($auth_plugin_path != $connection_control_plugin_path)
20 {
21 --remove_file $connection_control_plugin_path
22 }
23 enable_result_log;
24 enable_query_log;