If you are running under Linux and Security-Enhanced Linux (SELinux) is enabled,make sure you have disabled SELinux protection for the MysqLd process.
哇…这真的很有帮助.
查看httpd进程上设置的标志
允许Apache通过SELinux连接到远程数据库
使用-P选项可使更改成为永久更改.如果没有此选项,布尔值将在重新启动时重置为0.