Commit 78c9b11c authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

merge

parents d4d3d1ef 6230c2e2
select @@global.character_sets_dir; select @@global.character_sets_dir;
@@global.character_sets_dir @@global.character_sets_dir
MYSQL_SHAREDIR/charsets/ MYSQL_CHARSETSDIR/
select @@session.character_sets_dir; select @@session.character_sets_dir;
ERROR HY000: Variable 'character_sets_dir' is a GLOBAL variable ERROR HY000: Variable 'character_sets_dir' is a GLOBAL variable
show global variables like 'character_sets_dir'; show global variables like 'character_sets_dir';
Variable_name Value Variable_name Value
character_sets_dir MYSQL_SHAREDIR/charsets/ character_sets_dir MYSQL_CHARSETSDIR/
show session variables like 'character_sets_dir'; show session variables like 'character_sets_dir';
Variable_name Value Variable_name Value
character_sets_dir MYSQL_SHAREDIR/charsets/ character_sets_dir MYSQL_CHARSETSDIR/
select * from information_schema.global_variables where variable_name='character_sets_dir'; select * from information_schema.global_variables where variable_name='character_sets_dir';
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
CHARACTER_SETS_DIR MYSQL_SHAREDIR/charsets/ CHARACTER_SETS_DIR MYSQL_CHARSETSDIR/
select * from information_schema.session_variables where variable_name='character_sets_dir'; select * from information_schema.session_variables where variable_name='character_sets_dir';
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
CHARACTER_SETS_DIR MYSQL_SHAREDIR/charsets/ CHARACTER_SETS_DIR MYSQL_CHARSETSDIR/
set global character_sets_dir="foo"; set global character_sets_dir="foo";
ERROR HY000: Variable 'character_sets_dir' is a read only variable ERROR HY000: Variable 'character_sets_dir' is a read only variable
set session character_sets_dir="foo"; set session character_sets_dir="foo";
......
# #
# show the global and session values; # show the global and session values;
# #
--replace_result $MYSQL_SHAREDIR MYSQL_SHAREDIR --replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
select @@global.character_sets_dir; select @@global.character_sets_dir;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR --error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.character_sets_dir; select @@session.character_sets_dir;
--replace_result $MYSQL_SHAREDIR MYSQL_SHAREDIR --replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
show global variables like 'character_sets_dir'; show global variables like 'character_sets_dir';
--replace_result $MYSQL_SHAREDIR MYSQL_SHAREDIR --replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
show session variables like 'character_sets_dir'; show session variables like 'character_sets_dir';
--replace_result $MYSQL_SHAREDIR MYSQL_SHAREDIR --replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
select * from information_schema.global_variables where variable_name='character_sets_dir'; select * from information_schema.global_variables where variable_name='character_sets_dir';
--replace_result $MYSQL_SHAREDIR MYSQL_SHAREDIR --replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
select * from information_schema.session_variables where variable_name='character_sets_dir'; select * from information_schema.session_variables where variable_name='character_sets_dir';
# #
......
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