GRANT SELECT, LOCK TABLES ON *.* TO yourmysqluser@localhost;
All you need to do a full MySQL dump on all databases is the SELECT and LOCK TABLES privileges. This way you don't have to use the mysql root user. Data could be compromised this way but at least no harm from manipulation, changes or deletion are possible by locking down the privileges to the minimum for a full MySQL dump and backup.
Here is a command you could use to dump all databases.
mysql, databases, export, purposesgrant, select, yourmysqluser, localhost, privileges, user, compromised, manipulation, deletion, locking,