开发者

how to specify the terminal width in mysql CLI

开发者 https://www.devze.com 2022-12-08 05:59 出处:网络
I\'m using the mysql CLI, however the result displays always wraps around on my terminal screen. is there any way to specify开发者_运维技巧 to mysql the size of my terminal screen?I couldn\'t find res

I'm using the mysql CLI, however the result displays always wraps around on my terminal screen. is there any way to specify开发者_运维技巧 to mysql the size of my terminal screen?


I couldn't find resize command but stty cols 150 worked for me. You would have to execute this command in the bash terminal before you enter mysql command line client.


MySQL doesn't seem to have any settings for terminal linesize. If you're on a system with ksh or bash, try the following before launching the mysql command shell:

eval `resize`

[note the quotes are backticks] This should set the $COLUMNS and $LINES shell variables to the size of your window and ensure that the xterm knows how big it is.

0

精彩评论

暂无评论...
验证码 换一张
取 消