Вот как выглядит тестовая сессия запросов к зеновскому mysql:
adminus@zentyal-test:/var/lib/zentyal/conf$ sudo cat zentyal-mysql.passwd
GUEVLAUz
adminus@zentyal-test:/var/lib/zentyal/conf$ mysql -u zentyal -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 82
Server version: 5.5.38-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use zentyal;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select * from squid_traffic_monthly;
+---------------------+--------+----------+----------+---------------+--------+-------------+----------+---------------+
| date | rfc931 | requests | accepted | accepted_size | denied | denied_size | filtered | filtered_size |
+---------------------+--------+----------+----------+---------------+--------+-------------+----------+---------------+
| 2014-09-01 00:00:00 | - | 15 | 14 | 45 | 1 | 22 | 0 | 0 |
+---------------------+--------+----------+----------+---------------+--------+-------------+----------+---------------+
1 row in set (0.02 sec)
mysql> select * from squid_traffic_weekly;
+---------------------+--------+----------+----------+---------------+--------+-------------+----------+---------------+
| date | rfc931 | requests | accepted | accepted_size | denied | denied_size | filtered | filtered_size |
+---------------------+--------+----------+----------+---------------+--------+-------------+----------+---------------+
| 2014-09-08 00:00:00 | - | 83 | 82 | 1069978 | 1 | 22 | 0 | 0 |
| 2014-09-15 00:00:00 | - | 115 | 115 | 14250843 | 0 | 0 | 0 | 0 |
| 2014-09-22 00:00:00 | - | 3 | 3 | 28 | 0 | 0 | 0 | 0 |
+---------------------+--------+----------+----------+---------------+--------+-------------+----------+---------------+
3 rows in set (0.02 sec)
mysql> quit;
Bye
При желании, можно и подробнее получить информацию, только надо понимать, что без фильтров 'where' можно получить очень много букв.