Does DNS-Only cpanel require MySQL?

electric

Well-Known Member
Nov 5, 2001
790
11
318
We just updated a DNS-Only server (being used as a nameserver in a DNS Cluster) to latest version 90.0.14. Now we see this message after login:

Action Needed

Your MySQL version (5.6) will reach End of Life status soon. Upgrade now to prevent security and compatibility problems.

Upgrade MySQL
Is this important? Is mysql service required for a DNS-Only server being used as only a nameserver (ns1.domain.com)?

Moreover, when I click the Upgrade MySQL button, I see this message on the next page:

Your server’s MySQL/MariaDB RPM target is set to “unmanaged”. You cannot use the MySQL/MariaDB Upgrade feature while your server is in this state. To allow cPanel & WHM to manage MySQL/MariaDB on your server, read the rpm.versions system documentation.
However, when I visit the documentation it does not list MySQL as an RPM Target.

If possible we do not want to run MySQL service on this nameserver, because the server only 1gb of memory allocated. Is MySQL necessary? Can we ignore the "warning end-of-life message?
 

cPSean

Technical Analyst II
Staff member
Sep 29, 2020
8
3
78
Houston
cPanel Access Level
Website Owner
Hello,

MySQL is not explicitly required for DNS-Only servers, in the past MySQL was used for the MyDNS nameserver, Eximstats, and cPhulkd. We no longer use MySQL for cPhulkd or Eximstats and MyDNS has been deprecated as of version 78.

You can safely disable MySQL if you're not using it for any other service.
 

electric

Well-Known Member
Nov 5, 2001
790
11
318
Excellent. Thanks! We're not using eximstats or cphulk.

Hmmm... Is there a way to disable MySQL on a DNS-Only server? I just noticed the enable/disable checkbox for MySQL Service on the Service Configuration » Service Manager page is grayed out, so we can't disable it.
 

cPSean

Technical Analyst II
Staff member
Sep 29, 2020
8
3
78
Houston
cPanel Access Level
Website Owner
Hello,

You can use the operating system to disable the service from starting on boot.

CentOS 7 :

systemctl disable mysql

CentOS 6:

chkconfig mysql off

You will also want to make sure you stop the service if you haven't already:


CentOS 6:

/etc/init.d/mysql stop

CentOS 7:

systemctl stop mysql


After those steps are complete MySQL won't be started again.