1#
2# Check if server has support for loading plugins
3#
4if (`SELECT @@have_dynamic_loading != 'YES'`) {
5  --skip mysql_no_login requires dynamic loading
6}
7
8#
9# Check if the variable MYSQL_NO_LOGIN is set
10#
11if (!$MYSQL_NO_LOGIN) {
12  --skip mysql_no_login requires the environment variable \$MYSQL_NO_LOGIN to be set (normally done by mtr)
13}
14
15#
16# Check if --plugin-dir was setup for mysql_no_login
17#
18if (`SELECT CONCAT('--plugin-dir=', REPLACE(@@plugin_dir, '\\\\', '/')) != '$MYSQL_NO_LOGIN_OPT/'`) {
19  --skip mysql_no_login requires that --plugin-dir is set to the mysql_no_login dir (either the .opt file does not contain \$MYSQL_NO_LOGIN_OPT or another plugin is in use)
20}
21
22