dop20345 2010-11-11 11:47
浏览 30

mysql pconnect,当它关闭连接时

In genral ,

for mysql_connect have mysql_close ,

but mysql_pconnect does not have any close function ,

i saw in all threads and tutorial , they are saying that for mysql pconnect ,

First, when connecting, the function would first try to find a (persistent)
link that's already open with the same host, username and password.
If one is found, an identifier for it will be returned instead of 
opening a new connection. 

FRO ---> php.net manual

b default there is no close function for mysql_pconnect , then in tutorial,

why they are saying like

the function would first try to find a (persistent) link that's already open with the same host

As per this line :-- may be in some occasion, mysql_pconnect connection will close ,

Then when this connection will close ,in which situation connection goes close mode ,

or is there any time out for cloase connection or time limit ,

i guess this quesiton little but childish ,

  • 写回答

1条回答 默认 最新

  • dongqiang5541 2010-11-11 11:49
    关注

    The connection will be closed when the web server or FastCGI process dies.

    评论

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭