mysql(1) -u root -p -h
the MySQL command-line tool
--user=user_name, -u user_name

 The MySQL user name to use when connecting to the server.
--password[=password], -p[password]

 The password to use when connecting to the server. If you use the short option form (-p), you cannot
 have a space between the option and the password. If you omit the password value following the
 --password or -p option on the command line, mysql prompts for one.

 Specifying a password on the command line should be considered insecure. See Section, “End-
 User Guidelines for Password Security”. You can use an option file to avoid giving the password on
 the command line.
--host=host_name, -h host_name

 Connect to the MySQL server on the given host.
source manpages: mysql