格式:mysql -h主机地址 -u用户名 -p用户密码 示例:mysql -h192.168.1.52 -uroot -p123456 转载于:https://my.oschina.net/hlhgo/blog/1476251