php - mysql_connect 连接生命周期

标签 php mysql connection lifetime

当创建@mysql_connect($server, $user, $password)的脚本死掉时会发生什么?
它能活多久?

谢谢!

最佳答案

Connections opened by mysql_connect() are closed at script exit, unless closed earlier by calls to mysql_close().

http://www.phpdig.net/ref/rn41re774.html

关于php - mysql_connect 连接生命周期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1630270/

相关文章:

使用for循环的递增日期的php代码在更新条件下不起作用

mysql - 使加密字段的值唯一

mysql - 选择的列在链接表中不存在

mysql - 给定列中区分大小写的部分字符串

php - mysql_query 连接 NULL 结果,但我已经连接成功

php - 将当前日期存储在数据库中

php - 如果没有数据,隐藏表中的表?

php - Laravel 和 CKEditor 提交表单时出错

hibernate : can multiple sessions share the same connection?

python - 无法使用 Python 的 modbus_tk 连接到从站