Fatal error : execution time of 30 seconds exceeded in phpMyAdmin

后端 未结 5 1370
太阳男子
太阳男子 2020-12-08 17:05

I have a MySQL table which contains 6.5 million records. When I try to access that table from phpMyAdmin I get:

Fatal error: Maximum execution time of

相关标签:
5条回答
  • 2020-12-08 17:39

    you need to set max_execution_time in php.ini

    max_execution_time=6000

    HAPPY CODING

    0 讨论(0)
  • 2020-12-08 17:40

    This solution has resolved the issue Place the following lines at the top of the script page and before the query that initiates the memory:

    ini_set('max_execution_time', 0);
    set_time_limit(1800);
    ini_set('memory_limit', '-1');
    
    0 讨论(0)
  • 2020-12-08 17:52

    Add this line

    $cfg['ExecTimeLimit'] = 6000;
    

    to phpmyadmin/config.inc.php

    And Change php.ini and my.ini

    • post_max_size = 750M
    • upload_max_filesize = 750M
    • max_execution_time = 5000
    • max_input_time = 5000
    • memory_limit = 1000M
    • max_allowed_packet = 200M (in my.ini)
    0 讨论(0)
  • 2020-12-08 18:05

    if you are using xammp on the xammp control panel at the apache line click on config and then click to open PHP(php.ini) find and increase max_execution_time=30 to max_execution_time=600.

    0 讨论(0)
  • 2020-12-08 18:05

    +1 for making me lookup lakhs. That looks like a PHP timeout to me as the default timeout is 30 seconds. Increase the setting in your php.ini and restart apache and see if the timeout persists.

    http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time

    0 讨论(0)
提交回复
热议问题