3
# Check if server has support for loading plugins
5
if (`SELECT @@have_dynamic_loading != 'YES'`) {
6
--skip Null audit plugin requires dynamic loading
10
# Check if the variable AUDIT_NULL is set
13
--skip Audit_null plugin requires the environment variable \$AUDIT_NULL to be set (normally done by mtr)
17
# Check if --plugin-dir was setup for null_audit db
19
if (`SELECT CONCAT('--plugin-dir=', REPLACE(@@plugin_dir, '\\\\', '/')) != '$AUDIT_NULL_OPT/'`) {
20
--skip null audit plugin requires that --plugin-dir is set to the null audit plugin dir (either the .opt file does not contain \$AUDIT_NULL_OPT or another plugin is in use)