我想运行此处列出的命令:https://dev.mysql.com/doc/mysql-shell/8.4/en/check-instance-configuration.html
我已经添加了最新的 MySQL 包mysql-apt-config_0.8.30-1_all.deb
来进行安装mysql-cluster-8.4-lts
。
我按照此处的说明安装 mysqlsh 8.4:https://dev.mysql.com/doc/mysql-shell/8.4/en/check-instance-configuration.html
这涉及重新配置包以指向非集群 8.4 版本以便访问 mysqlsh 8.4。
运行时出现以下错误:dba.checkInstanceConfiguration('[email protected]:3306')
ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dba.checkInstanceConfiguration('[email protected]:3306')' at line 1
阅读 \help 部分后,我意识到 mysqlsh 有不同的模式。登录后,默认模式是 \sql,但我想要运行的功能需要切换到 \js。