Chinaunix

标题: 求助:hpux问题 [打印本页]

作者: lnwu    时间: 2012-12-06 21:14
标题: 求助:hpux问题
本帖最后由 lnwu 于 2012-12-07 09:10 编辑

现在环境:
A机器: hpux    mysql 5.1                       192.168.22.11/24
B机器: win2003   tomcat                       192.168.10.12/24
C机器: centos6.3   apache+php             192.168.10.13/24
D机器    centos6.3   mysql                      192.168.10.11/24

B、C、D机在同一网段,A在另外的网段,中间有两个防火墙

A里面mysql 用户名 :user1  数据库名 db1         对任意主机数据库用户user1有授权
D里面mysql用户名:user22    数据库   db22      对任意主机数据库用户user22有授权

B机器 jsp网站使用 user1可以连接到A机器的 db1

C机器用mysql客户端工具可以用user1连接到A机器的db1
C机器 php网站使用user1 不能连接到A机器的 db1
错误提示: Can't connect to MySQL server on 'IP' (4)


C机器 php网站使用user22可以连接到D机器的 db22


怀疑是A机器的hp ux的系统问题,看了hp ux的防火墙,没有任何配置,也就是没有用防火墙。
请高手指点这个要如何解决?

作者: lnwu    时间: 2012-12-07 09:16
在A机器的HP UX有这样的结果:

netstat -sp tcp
tcp:
        34955 packets sent
                32885 data packets (4596980 bytes)
                15 data packets (0 bytes) retransmitted
                2048 ack-only packets (532 delayed)
                0 URG only packets
                0 window probe packets
                0 window update packets
                12734 control packets
        43451 packets received
                33648 acks (for 4593685 bytes)
                14 duplicate acks
                0 acks for unsent data
                31270 packets (7596118 bytes) received in-sequence
                0 completely duplicate packets (0 bytes)
                0 packets with some dup, data (0 bytes duped)
                0 out of order packets (0 bytes)
                0 packets (0 bytes) of data after window
                0 window probes
                958 window update packets
                22 packets received after close
                0 segments discarded for bad checksum
                0 bad TCP segments dropped due to state change
        5268 connection requests
        784 connection accepts
        6052 connections established (including accepts)
        10616 connections closed (including 4587 drops)
        4564 embryonic connections dropped
        31741 segments updated rtt (of 31741 attempts)
        23 retransmit timeouts
                2 connections dropped by rexmit timeout
        0 persist timeouts
        502 keepalive timeouts
                480 keepalive probes sent
                1 connection dropped by keepalive
        0 connect requests dropped due to full queue
        4718 connect requests dropped due to no listener
        0 suspect connect requests dropped due to aging
        0 suspect connect requests dropped due to rate


这个怎么解决呢?
作者: lbseraph    时间: 2012-12-10 13:44
1. HP-UX是11.31的?是的话看看是否开了IPFilter。
2. 从C机器能否正确解析A机器的域名、IP?
3. 参考下面的解决方法:
http://bbs.phpchina.com/thread-167207-1-1.html
http://stackoverflow.com/questio ... ect-to-mysql-server




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2