之前有写过远程连接mysql的文章。不过这样做不太安全,更好的方式是利用 ssh 远程连接mysql。
Host Name/IP Address: localhost Port: 3306 User Name: your database created user Password: your database user password
这里如果是密码登录的话,记得确认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
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有