Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 是不是;mysqli::close“;关闭持久连接?_Php_Mysqli_Persistent Connection - Fatal编程技术网

Php 是不是;mysqli::close“;关闭持久连接?

Php 是不是;mysqli::close“;关闭持久连接?,php,mysqli,persistent-connection,Php,Mysqli,Persistent Connection,PHP文档说“mysql_close()不会关闭持久链接” mysqli(mysqli::close())是否也一样?否。mysql\u close()函数仅关闭非持久性链接。无法关闭持久链接 mysql_close()关闭与指定链接标识符关联的mysql服务器的非持久连接。如果未指定链接标识符,则使用最后打开的链接 否。mysql\u close()函数仅关闭非持久性链接。无法关闭持久链接 mysql_close()关闭与指定链接标识符关联的mysql服务器的非持久连接。如果未指定链接标识符,

PHP文档说“mysql_close()不会关闭持久链接”


mysqli(mysqli::close())是否也一样?

否。
mysql\u close()
函数仅关闭非持久性链接。无法关闭持久链接

mysql_close()关闭与指定链接标识符关联的mysql服务器的非持久连接。如果未指定链接标识符,则使用最后打开的链接


否。
mysql\u close()
函数仅关闭非持久性链接。无法关闭持久链接

mysql_close()关闭与指定链接标识符关联的mysql服务器的非持久连接。如果未指定链接标识符,则使用最后打开的链接


Mysqli包含一个内置的自动清理功能,可以关闭处理程序


您可能需要读取Mysqli中包含的内置自动清理功能,该功能将关闭处理程序


你可能想读一读

只是想发布同样的内容:)没有可靠的方法来关闭来自PHP的持久连接。一种解决方法是将MySQLs wait_timeout设置为一个较低的值:好的,我知道mysql_close()是这样的,但我想确定msqli::close()也是这样的。。。“没有可靠的方法来关闭来自PHP的持久连接”似乎是一个明确的答案。谢谢。“你不能关闭持久链接。”所以,你不能用php中的任何函数、方法、类、宏、指令以及所有扩展、模块来关闭这些链接。如果必须关闭,请重新启动mysql服务器进程!只是想发布相同的消息:)没有可靠的方法来关闭来自PHP的持久连接。一种解决方法是将MySQLs wait_timeout设置为一个较低的值:好的,我知道mysql_close()是这样的,但我想确定msqli::close()也是这样的。。。“没有可靠的方法来关闭来自PHP的持久连接”似乎是一个明确的答案。谢谢。“你不能关闭持久链接。”所以,你不能用php中的任何函数、方法、类、宏、指令以及所有扩展、模块来关闭这些链接。如果必须关闭,请重新启动mysql服务器进程!