2018年6月13日 - To directly login to a remote mysql console, use the below command: mysql -u {username} -p {password} \ -h {remote server ip or name} -P {port} \ -D {DB name}..