Closed GoogleCodeExporter closed 8 years ago
master_ip_online_change (and master_ip_failover) scripts don't read MHA
configuration files. They get ip/host/port information as command line
arguments
(http://code.google.com/p/mysql-master-ha/wiki/Parameters#master_ip_failover_scr
ipt) but do not get MySQL account information. So if you want to connect to
MySQL servers (orig/new masters) and run specific SQL statements, you need such
as: 1. hard-coding MySQL username/password in the master_ip_online_change
script, 2. reading MHA conf file and getting user and password parameter
value. It is easy by using Config::Tiny Perl module but it is generally
language-independent.
Original comment by Yoshinor...@gmail.com
on 27 Nov 2012 at 8:35
Thank you . it works . Very good impressions from my first tests.
Original comment by andrea.c...@gmail.com
on 29 Nov 2012 at 1:46
Thanks for the kind words. Upcoming version 0.54 passes user information
(--new_master_user and --new_master_port for master_ip_failover_script, and
supporting --orig_master_user, --orig_master_password, --new_master_user and
--new_master_password for master_ip_online_change_script) so you'll be able to
get as arguments.
Original comment by Yoshinor...@gmail.com
on 1 Dec 2012 at 1:24
Original issue reported on code.google.com by
andrea.c...@gmail.com
on 26 Nov 2012 at 1:06