提交 1e1cbd60 编写于 作者: S ShadelessFox

#9983 Don't specify env variable if password is empty


Former-commit-id: c99c55ef
上级 77105650
......@@ -61,7 +61,9 @@ public abstract class MySQLNativeToolHandler<SETTINGS extends AbstractNativeTool
toolUserPassword = settings.getDataSourceContainer().getActualConnectionConfiguration().getUserPassword();
}
process.environment().put(MySQLConstants.ENV_VAR_MYSQL_PWD, CommonUtils.notEmpty(toolUserPassword));
if (CommonUtils.isNotEmpty(toolUserPassword)) {
process.environment().put(MySQLConstants.ENV_VAR_MYSQL_PWD, toolUserPassword);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册