今天,我试图运行Zend Framework编码的项目,并连接到远程数据库,我得到了以下两个错误:
PDOException: SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\wamp\www\trunk\library\
我试着使用防火墙-cmd命令打开端口。防火墙的输出-cmd-列表-都如下所示。NAME=“CentOS Linux”ID=“centos”VERSION_ID=“8”PRETTY_NAME=“CentOS Linux 8 (Core)”CPE_NAME=“cpe:/o:centos:centos:8”BUG_REPORT_URL=“ht