By Noxxxx from https://www.noxxxx.com/?post_type=post&p=316
欢迎分享与聚合,尊重版权,可以联系授权
之前有写过远程连接mysql的文章。不过这样做不太安全,更好的方式是利用 ssh 远程连接mysql。
mysql 的登录信息
Host Name/IP Address: localhost
Port: 3306
User Name: your database created user
Password: your database user password

ssh login info
这里如果是密码登录的话,记得确认ssh是否允许root用户登录,如果禁止了需要新建一个用户来进行ssh登录的。
Host Name/IP address: your server host name
Port: 21098
User Name: your cPanel username
Authentication Method: Password
Password: your cPanel password
