mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
33 lines
658 B
Plaintext
33 lines
658 B
Plaintext
--source include/not_embedded.inc
|
|
--source include/have_perfschema.inc
|
|
|
|
#
|
|
# Only global
|
|
#
|
|
|
|
select @@global.performance_schema;
|
|
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
select @@session.performance_schema;
|
|
|
|
show global variables like 'performance_schema';
|
|
|
|
show session variables like 'performance_schema';
|
|
|
|
select * from information_schema.global_variables
|
|
where variable_name='performance_schema';
|
|
|
|
select * from information_schema.session_variables
|
|
where variable_name='performance_schema';
|
|
|
|
#
|
|
# Read-only
|
|
#
|
|
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
set global performance_schema=1;
|
|
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
set session performance_schema=1;
|
|
|