MySQL Services get restarted periodically

pythonhacker

Registered
Oct 4, 2019
1
0
1
India
cPanel Access Level
Root Administrator
Hi

I am facing a problem of mysql service getting restarted automatically.

In MySQL error log i could see the following logs related to shutdown

2019-10-04 7:07:43 139929152554752 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2019-10-04 7:07:43 139929152554752 [Note] Event Scheduler: Purging the queue. 0 events

in cpanel error_log i found the following error

[2019-10-04 07:20:54 +0200]: “/usr/local/cpanel/scripts/restartsrv_cphulkd --stop” called by (1974 - /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/scripts/check_valid_server_hostname --notify)
[2019-10-04 07:20:56 +0200]: “/usr/local/cpanel/scripts/restartsrv_mysql --start” called by (1974 - /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/scripts/check_valid_server_hostname --notify)
[2019-10-04 07:20:58 +0200]: “/usr/local/cpanel/scripts/restartsrv_cphulkd --start” called by (1974 - /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/scripts/check_valid_server_hostname --notify)
[2019-10-04 07:20:58 +0200]: “/usr/local/cpanel/scripts/restartsrv_exim ” called by (1974 - /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/scripts/check_valid_server_hostname --notify)
[2019-10-04 07:20:59 +0200]: “/usr/local/cpanel/scripts/restartsrv_httpd ” called by (1974 - /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/scripts/check_valid_server_hostname --notify)
OK

So looks like /usr/local/cpanel/scripts/check_valid_server_hostname is causing the restart of mysql service .

Could you please help me in resolving this issue.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
That shouldn't actually kill mysql - furthermore, these don't seem to have occurred at the same time - MySQL was shut down 13 minutes prior to this - is there anything logged at 10-04 7:07 in the cPanel error logs?