method one:
Through MySQL's own client
only limited to root users
Way two:
Login: If it shows that MySQL is not an internal command, you need to configure environment variables, please refer to MySQL-Environment Variables
mysql 【-h IP地址 -P 端口号】 -u 用户名 -p(加密码)
drop out:
exit或ctrl+c