Home > Database > Mysql Tutorial > How to Fix PHPMyAdmin Import Timeouts for Large SQL Scripts?

How to Fix PHPMyAdmin Import Timeouts for Large SQL Scripts?

Barbara Streisand
Release: 2024-11-03 13:12:31
Original
721 people have browsed it

How to Fix PHPMyAdmin Import Timeouts for Large SQL Scripts?

Troubleshooting PHPMyAdmin Import Timeouts for Large SQL Scripts

Importing large SQL scripts (exceeding 300 MB) through PHPMyAdmin can often result in timeout errors, despite configuring PHP memory and execution time limits. This article explores a solution to resolve this issue.

The problem lies in PHPMyAdmin's default execution time limit, which can cap the duration of a single import process. Even after increasing PHP settings, this limit may impede the import of excessively large scripts.

The solution involves modifying a setting within PHPMyAdmin's configuration file:

  1. Navigate to the PHPMyAdmin configuration file located at "phpmyadminlibrariesconfig.default.php."
  2. Locate the line that reads "$cfg['ExecTimeLimit'] = 300;".
  3. Change the value of "300" to "0", effectively removing the execution time limit.
  4. Save the configuration file.
  5. Restart PHPMyAdmin.

With this change, the import process will no longer be restricted by an execution time limit, allowing for the seamless import of large SQL scripts via PHPMyAdmin.

The above is the detailed content of How to Fix PHPMyAdmin Import Timeouts for Large SQL Scripts?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template