Symptoms
You came across a similar error in the cPanel update logs.
[2021-03-30 01:41:46 +0200] /usr/sbin/mysqld is needed by cpanel-perl-532-munin-2.0.30-2.cp1194.x86_64
Description
Execute the below command to see which package provides the file /usr/sbin/mysqld
rpm -qf /usr/sbin/mysqld
If the output is like below check if you have MySQL or MariaDB-server package installed.
rpm -qf /usr/sbin/mysqld
file /usr/sbin/mysqld is not owned by any package
On an affected server the mysql-community-server package was not installed.
rpm -qa | grep -i ^mysql*
mysql-community-libs-compat-5.7.33-1.el7.x86_64
mysql-community-common-5.7.33-1.el7.x86_64
mysql-community-client-5.7.33-1.el7.x86_64
mysql-community-libs-5.7.33-1.el7.x86_64
mysql-connector-java-8.0.23-1.el7.noarch
Workaround
Install the MySQL or MariaDB server package and wait for the next automatic cPanel update. It should run successfully this time.
yum install mysql-community-server
For servers with MariaDB:
yum install MariaDB-server