mysql connect from remote code example
Example 1: mysql remote connection command line
mysql --host=localhost --user=myname --password mydb
Example 2: digitalocean mysql connect remote
RENAME USER 'sammy'@'localhost' TO 'sammy'@'remote_server_ip';