lee-pai-long
4/29/2016 - 4:04 PM

install-mycli-and-grc_mysql.md

[Linux Mint 17.2] Install MyCLI and grc

Install both grc and mycli

$ [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

Enable using grc with 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