php 不可以连接远程mysql数据库

进入

/etc/selinux

more config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – SELinux is fully disabled.
改为 :SELINUX=disabled