Can't connect to MySQL server on '127.0.0.1' (13)
2014-05-26 11:57
323 查看
getsebool -a | grep httpd 查看
![](http://img.blog.csdn.net/20140526115622343?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvb3V5YW5neWlxaW4=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
sudo setsebool httpd_can_network_connect 1
据说是跟selinux有关系,前提是你得phpz在cli模式下可以连通本地数据库,在浏览器却不行
OK
sudo setsebool httpd_can_network_connect 1
据说是跟selinux有关系,前提是你得phpz在cli模式下可以连通本地数据库,在浏览器却不行
OK
相关文章推荐
- MySQL 数据库连接失败 SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (13)
- database connect failed!Can't connect to MySQL server on '127.0.0.1' (13)
- Ubuntu ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
- MAC Can't connect to MySQL server on '127.0.0.1' (61)
- 远程连接CentOS的MySQL报错:Can't connect to MySQL server on 'XXX' (13)
- MySQL---can't connect to MySQL server on '127.0.0.1'(1006)
- 终于解决 Can't connect to MySQL server on '127.0.0.1' (10061) (2003)
- Mysql 连接报错 Can't connect to MySQL server on “127.0.0.1” (61)
- mac Can't connect to MySQL server on '127.0.0.1' (61)
- SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'XXX' (13)
- 执行廖雪峰老师案例时出现的问题【pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1'"】
- Can't connect to MySQL server on 'ip' (13)
- [mysql] Can't connect to mysql server on '127.0.0.1'
- Can’t connect to MySQL server on ‘…’ (13)
- can not connect to MySQL server on "10.30.48.153"(13)
- Python报错-(2003 Can t connect to MySQL server on 127.0.0.1)
- (2003, "Can't connect to MySQL server on '127.0.0.1' (99)")
- MySQL workbench的Can't connect to MySQL server on '127.0.0.1'(10061)
- 2003-Can't connect to MySQL server on '127.0.0.1' (10038)
- 远程连接CentOS的MySQL报错:Can't connect to MySQL server on 'XXX' (13)