How to access mysql remote database from the command line?

You can connect to mysql remote database from the command line provided you have mysql client installed in your local system, you have the credentials for your mysql remote database connection and finally remote connection is allowed for your mysql remote database.

Install mysql client in your local system –

Connect to a remote mysql database from your local system –