Can’t connect to MySQL server on ‘…’ (13)

Standard

A Server:
CentOS5、Mysql Master、Apache2、PHP5
B Server:
CentOS5、Mysql Slave

将A Server的PHP里比较耗时的select操作全部连接到B 的Mysql Slave,报错如下:
Can’t connect to MySQL server on ‘yemaosheng_com’ (13)

解决方法:
查到是selinux所引起的,但没找着相应的setsebool操作,只得暂时关闭selinux
setenforce 0

3 thoughts on “Can’t connect to MySQL server on ‘…’ (13)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.