mysql -u {username} -p {password} \
    -h {remote server ip or name} -P {port} \
    -D {DB name}
Source: shell – Access mysql remote database from command line – Stack Overflow
shell – Access mysql remote database from command line – Stack Overflow was last modified:  May 24th, 2019 by