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 --用户=mysqluser -P 6447
发布于 2022-01-13 13:53:47
连接需要使用MySQL X协议。
https://stackoverflow.com/questions/70683313
复制相似问题