First of all, log into the WHM (root). Once logged in, upgrade the MySQL version from MySQL 5.7 to MariaDB 10.3. Once the upgrade is completed, follow the steps to install MySQL Governor on the cPanel server.
Reason for upgrading MySQL version to MariaDB
MariaDB structured with MySQL, it optimizes the websites hosted on the server.
Install MySQL Governor:
yum remove db-governor db-governor-mysql -y
yum install governor-mysql -y
Now, run the followings:
/usr/share/lve/dbgovernor/mysqlgovernor.py --mysql-version=mariadb103
/usr/share/lve/dbgovernor/mysqlgovernor.py --install
Make sure to copy the databases.