首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在mysql-js JavaScript模式下启动mysql-shell?

如何在mysql-js JavaScript模式下启动mysql-shell?
EN

Database Administration用户
提问于 2021-11-10 10:42:18
回答 1查看 918关注 0票数 1

如何将mysqlsh外壳更改为mysql-js JavaScript模式?

一开始我在mysql-py,我不能切换到\js,只能切换到\sql。为什么?

代码语言:javascript
复制
$ mysqlsh root@localhost:33060
Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory
Please provide the password for 'root@localhost:33060': ******
MySQL Shell 8.0.23

Copyright (c) 2016, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.

Type '\help' or '\?' for help; '\quit' to exit.
Creating a session to 'root@localhost:33060'
Fetching schema names for autocompletion... Press ^C to stop.
Your MySQL connection id is 240 (X protocol)
Server version: 8.0.27-0ubuntu0.20.04.1 (Ubuntu)
No default schema selected; type \use <schema> to set one.
mysql-py []> \js
Unknown command: '\js'
mysql-py []> \sql
Switching to SQL mode... Commands end with ;
mysql-sql []> 

安装自:apt snap install mysql-shell

EN

回答 1

Database Administration用户

发布于 2021-11-10 10:55:12

不幸的是,snap mysql-shell在编译时没有js模块.

手动安装它:

https://dev.mysql.com/downloads/shell/

sudo dpkg -i mysql-shell_8.0.27-1ubuntu20.04_amd64.deb

票数 1
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/302402

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档