标签:
主从架构相关问题
问题现象:从机连接主机时报错
[ERROR] Slave I/O: error connecting to master ‘repl@192.168.0.50:3306‘ - retry-time: 60 retries: 1, Error_code: 2003
可能的原因有:
a、网络不通(是否打开防火墙)
b、复制用户的密码不对
c、指定的master_port端口不对
d、master上的mysql-bin.xxxxxx被误删
e、主库磁盘空间满了
问题现象:
[root@DBproxy app1]# masterha_check_ssh --conf=/data/masterha/app1/app1.cnf
Can‘t locate MHA/SSHCheck.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/bin/masterha_check_ssh line 25.
BEGIN failed--compilation aborted at /usr/bin/masterha_check_ssh line 25.
[root@DBproxy app1]#
问题定位:应该是环境变量的问题
[root@DBproxy app1]# find / -name SSHCheck.pm
/usr/lib/perl5/vendor_perl/MHA/SSHCheck.pm
将相关路径加入PERL5LIB
export PERL5LIB=$PERL5LIB:/usr/lib/perl5/vendor_perl/
标签:
原文地址:http://www.cnblogs.com/polestar/p/5674872.html