View ‘sys.host_summary’ references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them

We’re running cPanel with MariaDB 10.2 on one of our servers and during a complete database dump we ran into this error:

We used the following command to dump the databases into a single dump file:

We looked around and found a reference on Stack Overflow. The answer suggests this database is scheduled to be used in MariaDB 10.5 and shouldn’t be on hosts with lower versions, the solution is as simple as dropping the database “sys”. 

You are about to delete a database from your server, make sure you have backups of your important databases before you proceed.

Login to MySQL and issue the following command: