Commit ebb329c7 authored by Sergei Golubchik's avatar Sergei Golubchik

don't show the value of open_files_limit

parent 13a8358d
select @@global.open_files_limit; select @@global.open_files_limit;
@@global.open_files_limit @@global.open_files_limit
1024 #
select @@session.open_files_limit; select @@session.open_files_limit;
ERROR HY000: Variable 'open_files_limit' is a GLOBAL variable ERROR HY000: Variable 'open_files_limit' is a GLOBAL variable
show global variables like 'open_files_limit'; show global variables like 'open_files_limit';
Variable_name Value Variable_name Value
open_files_limit 1024 open_files_limit #
show session variables like 'open_files_limit'; show session variables like 'open_files_limit';
Variable_name Value Variable_name Value
open_files_limit 1024 open_files_limit #
select * from information_schema.global_variables where variable_name='open_files_limit'; select * from information_schema.global_variables where variable_name='open_files_limit';
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
OPEN_FILES_LIMIT 1024 OPEN_FILES_LIMIT #
select * from information_schema.session_variables where variable_name='open_files_limit'; select * from information_schema.session_variables where variable_name='open_files_limit';
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
OPEN_FILES_LIMIT 1024 OPEN_FILES_LIMIT #
set global open_files_limit=1; set global open_files_limit=1;
ERROR HY000: Variable 'open_files_limit' is a read only variable ERROR HY000: Variable 'open_files_limit' is a read only variable
set session open_files_limit=1; set session open_files_limit=1;
......
# #
# show the global and session values; # show the global and session values;
# #
--replace_result 3072 1024 16384 1024 --replace_column 1 #
select @@global.open_files_limit; select @@global.open_files_limit;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR --error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.open_files_limit; select @@session.open_files_limit;
--replace_result 3072 1024 16384 1024 --replace_column 2 #
show global variables like 'open_files_limit'; show global variables like 'open_files_limit';
--replace_result 3072 1024 16384 1024 --replace_column 2 #
show session variables like 'open_files_limit'; show session variables like 'open_files_limit';
--replace_result 3072 1024 16384 1024 --replace_column 2 #
select * from information_schema.global_variables where variable_name='open_files_limit'; select * from information_schema.global_variables where variable_name='open_files_limit';
--replace_result 3072 1024 16384 1024 --replace_column 2 #
select * from information_schema.session_variables where variable_name='open_files_limit'; select * from information_schema.session_variables where variable_name='open_files_limit';
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment