Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zem558 opened this issue Sep 5, 2022 · 3 comments

Comments

@zem558
Copy link

zem558 commented Sep 5, 2022

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

@amjith
Copy link
Member

amjith commented Sep 5, 2022

@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
Copy link
Author

zem558 commented Sep 5, 2022

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

@amjith
Copy link
Member

amjith commented Sep 7, 2022

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

@amjith amjith closed this as completed Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants