PHP执行SQL内存溢出

报错:Allowed memory size of 134217728 bytes exhausted (tried to allocate 4294967296 bytes)

两种方法解决

1、修改php.ini

memory_limit = 128

这种方法需要重启服务器,很显然,此方法对虚拟机有限制。

2、通过ini_set函数修改配置选项值

ini_set ('memory_limit', '128M')  

0
0
Tags:
Previous Article
Next Article

发表回复

Your email address will not be published. Required fields are marked *.

*
*