1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge mysql1000.(none):/home/andrei/MySQL/FIXES/5.1/bug28780_report_host_no_show

into  mysql1000.(none):/home/andrei/MySQL/MERGE/5.1


sql/set_var.cc:
  Auto merged
This commit is contained in:
unknown
2008-03-06 20:33:29 +02:00
4 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,27 @@
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

View File

@ -0,0 +1,2 @@
--report-host=127.0.0.1 --report-user='my_user' --report-password='my_password' --report-port=9308

View File

@ -0,0 +1,18 @@
# 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