How to specify terminal width in mysql CLI

I am using the mysql CLI, but the result is always displayed on my terminal screen. is there any way to tell mysql the size of my terminal screen?

+3
source share
2 answers

I could not find the team resize, but stty cols 150worked for me. You will need to run this command in a bash terminal before entering the mysql command line client.

+2
source

MySQL does not seem to have parameters for the terminal line. If you use the system using ksh or bash, try the following before starting the mysql command shell:

eval `resize`

[ , ] $COLUMNS $LINES , xterm , .

+1

Source: https://habr.com/ru/post/1719675/


All Articles