0

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

4

1 回答 1

0

连接需要使用 MySQL X 协议。

于 2022-01-13T13:53:47.983 回答