在这种情况下,我有一个托管在服务器(称为服务器 A)中的应用程序,它需要访问托管在 OpenShift(服务器 B)上的 DIY 应用程序中的 MySQL。
当服务器 A 尝试访问 MYSQL 时,我遇到以下问题:
[ERROR] The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.): Connection refused
以本地方式,如果我使用它的rhc port-forward
话。但是,我不允许rhc
在服务器上安装命令行。
有没有办法配置两台服务器之一来访问数据库?
谢谢。