Query results with many columns are difficult to read when the width surpasses the size of your screen and the lines wrap and stack under each other. A common solution to this issue is the use of a pager, like Less or More, but the Docker MySQL image does not come with a pager, nor does it come with the command line tools to install a pager.
I’ve tried to install the pagers less and more using a variety of package installers, and none of them have worked on the command line:
bash-4.4# yum install less
bash: yum: command not found
bash-4.4# apt-get install less
bash: apt-get: command not found
bash-4.4# dnf install less
bash: dnf: command not found
Is there a way to install Less with the official Docker MySQL image, or at least get a package manager so I can install it myself?
Here is a link to the MySQL Docker image I’m using.