dbcli / mycli

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

'less' is not recognized as an internal or external command, #1088

Open claws99 opened 1 year ago

claws99 commented 1 year ago

Hello I've installed this program using pip install mycli. All the commands are working fine, but none of the data (tables, databases, are being displayed on the screen).

Rather I keep getting the error: 'less' is not recognized as an internal or external command, operable program or batch file.

image

jbusk commented 1 year ago

Yes, it seems that 'less' is required for the actual results to show. I suppose it'd be nice if there was a fallback option of just outputting the data without a pager, but in the meanwhile you can solve the problem by installing less (I installed it myself via chocolatey install less).

MarvinXu commented 1 year ago

you can use git bash shell instead

ThinkingAgain commented 1 year ago

You can install less from this site: https://gnuwin32.sourceforge.net/packages/less.htm. And append less path into the windows SysPath. Make sure the command 'less' works

Ravencentric commented 1 year ago

You need to install less. I used scoop to install it via scoop install less and that's pretty much all I had to do. Probably the easiest way to fix this. Although it should just be installed along with mycli imo.