从客户端连接远程数据库: mysql -h hostname -u username -P 端口 -p 密码 从客户端连接远程数据库: mysql -h hostname -u username -P 端口 -p 密码