今天在运行phpmyadmin时页面突然出现了fatal error: out of memory (allocated 786432)提示,看英文的意思是说超过了指定内存大小了,错误提示:
Fatal error: Out of memory (allocated 786432) (tried to allocate 393216 bytes) in E:xxxxlibrariescommon.lib.php on line 3135
解决办法
一,在你程序页面加入如下代码:
ini_set('memory_limit',"256M")
二,在php.ini中修改,打开php.ini修改:
memory_limit = 1024M
依照服务器配置进行调整配置的内存使用大小修改后重启iis/apache
永久地址:
转载随意~请带上教程地址吧^^
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号