  

|
[软件故障] Fatal error: Allowed memory size of 67108864 bytes exhausted...
现象:访问phpmyadmin时,提示
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 8963049 bytes) in D:\Kangle\nodewww\dbadmin\mysql\index.php on line 16
原因:使用内存超过了限制内存。
解决:(3种方法)
1、修改php安装目录下的php.ini(也可能为php-templete.ini等文件名):
将memory_limit由 64M 改成 80M(或更大),重启apache服务。
2、在PHP 文件中 加入 ini_set(”memory_limit”,”100M”);
注意:为了系统的其它资源的正常使用 请您不要将 memory_limit设置太大,其中-1为不限。
3、修改.htaccess 文档(前提是该目录支持.htaccess)
在文档中新增一句:php_value memory_limit 80M(或更大)。 |
|