在机器上连接数据库

mysql -u 用户名 -p 数据库名称 -h 数据库的ip

如:mysql -u testuser -p mydb -h 110.2.2.14

在Linux中启动mysql  : service mysql start

kingrain送给读者的话:Everthing isn't getting along well,your efforts paid off!
原文地址:https://www.cnblogs.com/iamjqy/p/6727872.html