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 ?
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);
You may need to increase the execution time of your application. From the code:
ini_set('max_execution_time', 3000);
Alternatively, you can edit the max_execution_time
field in your php.ini file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.