英文:
Can I change the output format for SHOW CONFIG when using mgconsole?
问题
在 mgconsole
(版本1.3)中,当我运行SHOW CONFIG;查询时,输出很难阅读。
Memgraph Lab
正在本地运行: 3000
mgconsole 1.3
已连接到 'memgraph://127.0.0.1:7687'
键入 :help 以获取 shell 使用说明
通过键入 Ctrl-D(eof) 或 :quit 退出 shell
memgraph> SHOW CONFIG;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 名称 | 默认值 | 当前值 | 描述 |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| "flag_file" | "" | "/etc/memgraph/memgr`
英文:
In mgconsole
(version 1.3) when I run SHOW CONFIG; query the output is hard to read.
`Memgraph Lab is running at localhost:3000
mgconsole 1.3
Connected to 'memgraph://127.0.0.1:7687'
Type :help for shell usage
Quit the shell by typing Ctrl-D(eof) or :quit
memgraph> SHOW CONFIG;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| name | default_value
| current_value
| description
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| "flag_file" | ""
| "/etc/memgraph/memgr`
Can the output format be changed?
答案1
得分: 1
在Memgraph中有一个名为“-fit_to_screen”的标志。您需要在启动mgconsole
之前使用它。您可以将此参数添加到您的docker run
命令中。
docker run -e MGCONSOLE="-fit_to_screen" -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph-platform
这将导致输出适应您的窗口大小,如下所示:
英文:
There is a flag in Memgraph called -fit_to_screen
. You need to use it before staring mgconsole
. You can add this parameter to your docker run
command.
docker run -e MGCONSOLE="-fit_to_screen" -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph-platform
It will result in output that will fit to your window size. Like this
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论