Home > Database > Mysql Tutorial > Why Does My phpMyAdmin Still Time Out When Importing Large SQL Scripts?

Why Does My phpMyAdmin Still Time Out When Importing Large SQL Scripts?

Patricia Arquette
Release: 2024-11-01 01:17:28
Original
521 people have browsed it

Why Does My phpMyAdmin Still Time Out When Importing Large SQL Scripts?

Troubleshooting Time Out Errors in phpMyAdmin

When importing large SQL scripts via phpMyAdmin, users may encounter a persistent time out error despite modifying the necessary settings in the php.ini file.

If the error persists even after adjusting the following settings:

  • post_max_size = 750M
  • upload_max_filesize = 750M
  • max_execution_time = 300
  • max_input_time = 540
  • memory_limit = 1000M

An additional step is required. Locate and edit the following file:

  • phpmyadminlibrariesconfig.default.php

Within this file, change the setting:

  • $cfg['ExecTimeLimit'] = 300; to $cfg['ExecTimeLimit'] = 0;

This modification removes any execution time limit for the import process. It is important to note that this setting should only be used on a local server, where there are no security concerns with potentially long-running scripts.

By implementing these changes, you can successfully import large SQL scripts without encountering time out errors.

The above is the detailed content of Why Does My phpMyAdmin Still Time Out When Importing 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