551838 (2) [Avatar] Offline
I am unable to connect to mysql from the command line. MySQl version

mysql --version
mysql Ver 14.14 Distrib 5.7.19, for osx10.12 (x86_64) using EditLine wrapper

I use
mysql -u user-here --password=password-here -h (changing user, password and ip)

I get:

ERROR 2003 (HY000): Can't connect to MySQL server on 'ip-here'

Using the ip given where it says Connect to this instance ipv4 address: '......'