1select variable_name from information_schema.session_variables where variable_name= 2(select variable_name from information_schema.session_variables where variable_name= 'BASEDIR'); 3variable_name 4BASEDIR 5Warnings: 6Warning 1287 'INFORMATION_SCHEMA.SESSION_VARIABLES' is deprecated and will be removed in a future release. Please use performance_schema.session_variables instead 7