mariadb/mysql-test/suite/rpl/r/rpl_report.result
aelkin/andrei@mysql1000.(none) 0958a508f8 Bug #28780 report_host is not available through SELECT @@report_host
There was no way to see if report-{host,port,user,password} were set up.

Fixed with introducing new global variables.
The variables are made read-only because of a possible need to change them
most probably require the slave server restart.

Todo: transform the startup options to be CHANGE master parameters - i.e
to deprecate `report-' options, and to change the new vars 
to be updatable at time of CHANGE master executes with new
values.
2008-03-05 12:25:55 +02:00

27 lines
843 B
Text

stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
select * from Information_schema.GLOBAL_VARIABLES where variable_name regexp 'report_\(host\|port\|user\|password\)';
VARIABLE_NAME VARIABLE_VALUE
REPORT_HOST 127.0.0.1
REPORT_PORT 9308
REPORT_PASSWORD my_password
REPORT_USER my_user
show global variables like 'report_host';
Variable_name Value
report_host 127.0.0.1
show global variables like 'report_port';
Variable_name Value
report_port 9308
show global variables like 'report_user';
Variable_name Value
report_user my_user
show global variables like 'report_password';
Variable_name Value
report_password my_password
set @@global.report_host='my.new.address.net';
ERROR HY000: Variable 'report_host' is a read only variable
end of tests