dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.49k stars 663 forks source link

'less' 不是内部或外部命令,也不是可运行的程序或批处理文件。 #1082

Closed zem558 closed 2 years ago

zem558 commented 2 years ago

image windows11系统成功安装mycli,但是启动mycli然后执行mysql命令时无法正确显示对应结果,报异常:'less' 不是内部或外部命令,也不是可运行的程序或批处理文件。show tables命令能够识别到我的zhuenin数据库下有7张表,但是查询结果页面却没有显示。请问如何解决。

amjith commented 2 years ago

@zem558 Looks like less is not installed on the system. Can you try installing less.exe? http://gnuwin32.sourceforge.net/packages/less.htm

Or you can open up myclirc file located under C:\Users\<username>\.myclirc and set enable_pager = False. This will turn off using less for output.

zem558 commented 2 years ago

@amjith 我先尝试去安装less.exe,但是安装完成后还是没有任何效果。另一种方式通过修改enable_pager = False,它成功的解决了我的问题。已经正常显示了。谢谢您的回答。 image

amjith commented 2 years ago

Thank you for reporting back. I'm glad you were able to make it work. I'm going to close this issue now.