Home > database >  MHA does not start
MHA does not start

Time:09-17

Environment: CentOS6.2 mysql5.1, MHA, 0.56 3 server is configured on (A, B, C), A node is MHA management, C and B, respectively is A master-slave mysql
Use all normal (with the exception of master-slave replication delay serious),
Heard mysql5.7 delay to solve well, put A, B, C mysql5.1 uninstall, install mysql5.7; After installation, the master-slave relationship between normal C and B,
problem: A MHA does not start in the , an error is as follows:
Tail:/var/log/masterha/app1/. Log: file truncated
Fri Aug 11 13:48:13 2017 - [warning] Global configuration file/etc/masterha_default CNF not found. Skipping.
Fri Aug 11 13:48:13 2017 - [info] Reading application default configuration from the/etc/. CNF..
Fri Aug 11 13:48:13 2017 - [info] Reading server configuration from the/etc/. CNF..
Fri Aug 11 13:48:13 2017 - [info] MHA: : MasterMonitor version 0.56.
Fri Aug 11 13:48:13 2017 - [ error] [/usr/share/perl 5/vendor_perl/MHA./the ServerManager PM, ln301] install_driver (mysql) failed: Attempt to reload DBD/mysql PM aborted. Compilation failed in the require at 27 (eval) line 3.

The at/usr/share/perl 5/vendor_perl/MHA/DBHelper PM line 205
The at/usr/share/perl 5/vendor_perl MHA/Server. The PM line 166
Fri Aug 11 13:48:13 2017 - [/usr/share/perl 5/vendor_perl/MHA./the ServerManager PM, ln301] install_driver (mysql) failed: Attempt to reload DBD/mysql. PM aborted.
Compilation failed in the require at 27 (eval) line 3.

The at/usr/share/perl 5/vendor_perl/MHA/DBHelper PM line 205
The at/usr/share/perl 5/vendor_perl MHA/Server. The PM line 166
Fri Aug 11 13:48:13 2017 - ] [/usr/share/perl 5/vendor_perl/MHA./the ServerManager PM, ln309] Got fatal error, stopping operations
Fri Aug 11 13:48:13 2017 - [/usr/share/perl 5/vendor_perl/MHA/MasterMonitor PM, ln424] error happened on checking configurations. The at/usr/share/perl 5/vendor_perl/MHA/MasterMonitor PM line 326
Fri Aug 11 13:48:13 2017 - ] [/usr/share/perl 5/vendor_perl/MHA/MasterMonitor PM, ln523] error happened on monitoring the servers.
Fri Aug 11 13:48:13 2017 - [info] Got the exit code 1 (Not master dead).
Please predecessors to give directions!

CodePudding user response:

Tue Oct 15 18:22:54 2019 - [info] Reading default configuration from the/etc/masterha_default CNF..
Tue Oct 15 18:22:54 2019 - [info] Reading application default configuration from the/etc/mha. CNF..
Tue Oct 15 18:22:54 2019 - [info] Reading server configuration from the/etc/mha. CNF..
Tue Oct 15 18:22:54 2019 - [info] MHA: : MasterMonitor version 0.58.
Tue Oct 15 18:22:54 2019 - [error] [/usr/share/perl 5/vendor_perl/MHA./the ServerManager PM, ln301] install_driver (mysql) failed: Attempt to reload DBD/mysql PM aborted.
Compilation failed the require in the at (188) eval line 3.



  • Related