dtol41388 2014-10-16 13:15
浏览 68
已采纳

无法从PHP脚本执行mysqldump(大数据)

I'm trying to make a database dump from my php script, when I only try to dump the database structure it works just fine, but when I try to dump the data the application crashes, I tried using the options : --opt and --quick, but that didn't work for me. Any ideas ?

  • 写回答

2条回答 默认 最新

  • douwen5584 2014-10-16 13:27
    关注

    Run this before your script:

    ini_set('memory_limit', '-1');
    

    You may also need this line to make sure PHP doesn't time out:

    set_time_limit(0);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?