使用SSH工具连接到MySQL

在SSH中查看MySQL数据信息

 格式为:mysql -h主机地址 -u用户名 -p用户密码 -P端口号 -D数据库名称

例如:

mysql -uroot -p123456 -h192.168.1.1 -P3306  -Dpay --default-character-set=gbk;

 可参考 http://blog.csdn.net/wangbofei/article/details/11357181

原文地址:https://www.cnblogs.com/JAYIT/p/5016873.html