mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 11:31:51 +01:00
19 lines
660 B
Text
19 lines
660 B
Text
|
# Verify that mysqld init time --report-{host,port,user,password} parameters
|
||
|
# are SHOW-able and SELECT-able FROM INFORMATION_SCHEMA.global_variables
|
||
|
|
||
|
source include/master-slave.inc;
|
||
|
|
||
|
connection slave;
|
||
|
select * from Information_schema.GLOBAL_VARIABLES where variable_name regexp 'report_\(host\|port\|user\|password\)';
|
||
|
show global variables like 'report_host';
|
||
|
show global variables like 'report_port';
|
||
|
show global variables like 'report_user';
|
||
|
show global variables like 'report_password';
|
||
|
|
||
|
# to demonstrate that report global variables are read-only
|
||
|
error ER_INCORRECT_GLOBAL_LOCAL_VAR;
|
||
|
set @@global.report_host='my.new.address.net';
|
||
|
|
||
|
|
||
|
--echo end of tests
|