Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate * bytes) in 报错的解决

恢复DZ论坛数据库时,报错 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49999887 bytes) in D:\web\bbs\data\restore.php on line 82 原因是php.ini中的内存分配超出最大值,默认php能够运行的最大内存数是134217728 bytes(也就是128MB),如果代码执行的时候需要更大的内存,就会报错,可将php.ini文件中的配置做如下更改,查找: memory_limit = 128M 将128M改成512M或者更大即可