Now that you know you have terminal access to server, there are some command line only php scripts in moodlecode/admin/cli/ that are specifically for MySQL/MariaDB.
Issuing them with no switches brings up help:
php mysql_compressed_rows.php
For info:
php mysql_compressed_rows.php -i
Database version: 5.7.30
Database name: moodle
Database engine: InnoDB
innodb_file_per_table: ON
innodb_file_format: Barracuda
BTW, mysql did have an update recently bringing version to 5.7.30
php mysql_collation.php -l
will list all tables and columns in those tables collations and end with a summation - all tables should have collation that matches what's in config.php for site.
Of interest/attention would be mdl_users and mdl_logstore_standard_log.
Either of those are related to what is shown as a performance issue in bench.
'SoS', Ken