https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-shell-reporting-create-example.html
MySQL [127.0.0.1 ssl] JS> \show
Available reports: query, sessions, thread, threads.
MySQL [127.0.0.1 ssl] JS>
MySQL [127.0.0.1 ssl] JS> \show sessions
reports.sessions: User-defined function threw an exception:
Traceback (most recent call last):
File "init.py", line 2, in sessions
sys = session.get_schema('sys')
AttributeError: unknown attribute: get_schema
连接是通过 MySQL 路由器。mysqlsh -h 127.0.0.1 --user=mysqluser -P 6447