Debian Codegraph @

mysql-test/suite/sys_vars/t/innodb_read_only_basic.test

raw
1
2 # Can only be set from the command line.
3 # show the global and session values;
4
5 --echo Valid values are 'ON' and 'OFF'
6 select @@global.innodb_read_only;
7 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
8 select @@session.innodb_read_only;
9 show global variables like 'innodb_read_only';
10 show session variables like 'innodb_read_only';
11 --disable_warnings
12 select * from performance_schema.global_variables where variable_name='innodb_read_only';
13 select * from performance_schema.session_variables where variable_name='innodb_read_only';
14 --enable_warnings
15
16 # Show that it's read-only
17 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
18 set global innodb_read_only=1;
19 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
20 set session innodb_read_only=1;
21