21 lines
609 B
Plaintext
21 lines
609 B
Plaintext
#
|
|
# only global
|
|
#
|
|
select @@global.protocol_version;
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
select @@session.protocol_version;
|
|
show global variables like 'protocol_version';
|
|
show session variables like 'protocol_version';
|
|
--disable_warnings
|
|
select * from performance_schema.global_variables where variable_name='protocol_version';
|
|
select * from performance_schema.session_variables where variable_name='protocol_version';
|
|
--enable_warnings
|
|
|
|
#
|
|
# show that it's read-only
|
|
#
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
set global protocol_version=1;
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
set session protocol_version=1;
|