欢迎您访问我爱IT技术网,今天小编为你分享的编程技术是:【FC 5 php 不可以连接远程mysql数据库】,下面是详细的分享!
FC 5 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
以上所分享的是关于FC 5 php 不可以连接远程mysql数据库,下面是编辑为你推荐的有价值的用户互动:
相关问题:PHP无法连接到远程的mysql数据库
答:你的数据库端口号3306呢? >>详细
相关问题:php5如何连接mysql数据库
答:下面是一个php连接数据库操作的测试代码,你可以参考: >>详细
相关问题:PHP如何远程连接到MySQL数据库
答:这个在你的项目里面配置一下就好了。比如我使用thinkphp框架,在配置文件里面有这么一行: 'DB_HOST'=> 'localhost', 这里配置的就是要访问的数据库服务器,我本地使用就用localhost,如果你是在服务器上的,就写你服务器的网址或者是IP就好了。... >>详细
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
