How to write a bash command for accessing a remote MySQL server?
If I try
mysql -host 10.1.1.20 -port 3306 -u root -p 1234
it prompts the password and after I type in the password it considers 1234 as a database name and claims that there's no such database.