Can't connect to MySQL server on 'ip' (13)

解决方法1、:setsebool -P httpd_can_network_connect_db=1

解决方法2、:修改/etc/selinux/config SELINUX=enforcing 为 SELINUX=disabled

原文地址:https://www.cnblogs.com/davidhou/p/9496589.html