$ [sudo] apt-get install grc && \
> curl https://packagecloud.io/gpg.key | [sudo] apt-key add - && \
> [sudo] apt-get install -y apt-transport-https && \
> [sudo] sh -c \
> 'echo "deb https://packagecloud.io/amjith/mycli/ubuntu/ trusty main" \
> > /etc/apt/sources.list.d/mycli.list' && \
> [sudo] apt-get update && \
> [sudo] apt-get install mycli
Create or update the file : ~/.my.cnf
[client]
pager = grcat ~/.grcat
Create the file : ~/.grcat
An example of grc configuration can be found here
MyCLI configuration documentation can be found here