Detail
For connecting remotely we added password to .my.cnf , So we should use this command in order to connection
mysql -u root
Without any password
Remote Connection
mysql -h ip_address -u root
ip_address of server that mysql installed on it
For connecting remotely we added password to .my.cnf , So we should use this command in order to connection
mysql -u root
Without any password
mysql -h ip_address -u root
ip_address of server that mysql installed on it