summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/performance_schema_basic.test
blob: bef8d6c58e7223b346f5f7ca1e8308391c941591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--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;