免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1908 | 回复: 2
打印 上一主题 下一主题

[求助] 求助:hpux问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-12-06 21:14 |只看该作者 |倒序浏览
本帖最后由 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的防火墙,没有任何配置,也就是没有用防火墙。
请高手指点这个要如何解决?

论坛徽章:
0
2 [报告]
发表于 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


这个怎么解决呢?

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
3 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP