微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法将 LC_ALL 设置为区域设置 en_US.UTF-8:不支持 JavaScript

如何解决无法将 LC_ALL 设置为区域设置 en_US.UTF-8:不支持 JavaScript

我在本地机器上运行 MysqL v8.0.23

$ sudo apt-get install MysqL-server
$ sudo snap install MysqL-shell

但是当我尝试输入 MysqLsh 进入 js 模式时,出现以下错误

$ MysqLsh --js
Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory
JavaScript is not supported.

虽然我可以切换到 \sql\py。我错过了什么?

SHELL COMMANDS

The shell commands allow executing specific operations including updating the
shell configuration.

The following shell commands are available:

 - \                   Start multi-line input when in sql mode.
 - \connect    (\c)    Connects the shell to a MysqL server and assigns the
                       global session.
 - \disconnect         disconnects the global session.
 - \edit       (\e)    Launch a system editor to edit a command to be executed.
 - \exit               Exits the MysqL Shell,same as \quit.
 - \G                  Send command to MysqL server,display result vertically.
 - \g                  Send command to MysqL server.
 - \help       (\?,\h) Prints help information about a specific topic.
 - \history            View and edit command line history.
 - \nopager            disables the current pager.
 - \Nowarnings (\w)    Don't show warnings after every statement.
 - \option             Allows working with the available shell options.
 - \pager      (\P)    Sets the current pager.
 - \py                 Switches to Python processing mode.
 - \quit       (\q)    Exits the MysqL Shell.
 - \reconnect          Reconnects the global session.
 - \rehash             Refresh the autocompletion cache.
 - \show               Executes the given report with provided options and
                       arguments.
 - \source     (\.)    Loads and executes a script from a file.
 - \sql                Executes sql statement or switches to sql processing
                       mode when no statement is given.
 - \status     (\s)    Print information about the current global session.
 - \system     (\!)    Execute a system shell command.
 - \use        (\u)    Sets the active schema.
 - \warnings   (\W)    Show warnings after every statement.
 - \watch              Executes the given report with provided options and

解决方法

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。