Home >Database >Mysql Tutorial >Why Do I Still Get Time Out Errors When Importing Large SQL Scripts in PHPMyAdmin Even After Modifying php.ini?
Resolving PHPMyAdmin Time Out Errors During Large Script Imports
When attempting to import SQL scripts of considerable size (over 300 MB) through PHPMyAdmin, users may encounter time out errors. This issue can persist even after adjusting the relevant settings in php.ini:
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 300
max_input_time = 540
memory_limit = 1000M
Solution:
If persistent time out errors occur despite these modifications, it is advised to modify the settings in the file:
\phpmyadmin\libraries\config.default.php
Specifically, change the following setting:
$cfg['ExecTimeLimit'] = 300;
To:
$cfg['ExecTimeLimit'] = 0;
After making this adjustment, restart PHPMyAdmin. This will effectively remove any execution time limits, assuming that the operation is being performed on a local server. Please note that this is not recommended for production environments.
The above is the detailed content of Why Do I Still Get Time Out Errors When Importing Large SQL Scripts in PHPMyAdmin Even After Modifying php.ini?. For more information, please follow other related articles on the PHP Chinese website!