| 1 |
--source include/not_embedded.inc |
| 2 |
# |
| 3 |
# only global |
| 4 |
# |
| 5 |
--replace_regex /[0-9]+/DEFAULT_MASTER_PORT/ |
| 6 |
select @@global.report_port; |
| 7 |
--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 8 |
select @@session.report_port; |
| 9 |
--replace_column 2 'DEFAULT_MASTER_PORT' |
| 10 |
show global variables like 'report_port'; |
| 11 |
--replace_column 2 'DEFAULT_MASTER_PORT' |
| 12 |
show session variables like 'report_port'; |
| 13 |
--replace_column 2 'DEFAULT_MASTER_PORT' |
| 14 |
select * from information_schema.global_variables where variable_name='report_port'; |
| 15 |
--replace_column 2 'DEFAULT_MASTER_PORT' |
| 16 |
select * from information_schema.session_variables where variable_name='report_port'; |
| 17 |
--replace_column 2 'DEFAULT_MASTER_PORT' |
| 18 |
|
| 19 |
# |
| 20 |
# show that it's read-only |
| 21 |
# |
| 22 |
--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 23 |
set global report_port=1; |
| 24 |
--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 25 |
set session report_port=1; |