how to connect database from local to database server mysql code example
Example 1: mysql remote connection command line
mysql --host=localhost --user=myname --password mydb
Example 2: mysql cli connect with password
mysql --user=root --password=mypass