How to solve time out in phpmyadmin?

后端 未结 10 1334
野性不改
野性不改 2020-11-29 21:30

I want import huge (at least 300 mb) sql scripts via phpMyAdmin.

I\'ve tried:

post_max_size = 750M
upload_max_filesize = 750M
max_ex         


        
相关标签:
10条回答
  • 2020-11-29 22:13

    If even after repeated upload you still get timeout error, pleasechange your settings in

    \phpmyadmin\libraries\config.default.php

    from $cfg['ExecTimeLimit'] = 300; to $cfg['ExecTimeLimit'] = 0; and restart. Now there is no execution time limit (trust we are talking about local server).

    Source : Change Script time out in phpmyadmin

    0 讨论(0)
  • 2020-11-29 22:13

    If any of you happen to use WAMP then at least in the current version (3.0.6 x64) there's a file located in <your-wamp-dir>\alias\phpmyadmin.conf which overrides some of your php.ini options.

    Edit this part:

    # To import big file you can increase values php_admin_value upload_max_filesize 512M php_admin_value post_max_size 512M php_admin_value max_execution_time 600 php_admin_value max_input_time 600

    0 讨论(0)
  • 2020-11-29 22:14

    None of the above answers solved it for me.

    I cant even find the 'libraries' folder in my xampp - ubuntu also.

    So, I simply restarted using the following commands:

    sudo service apache2 restart
    

    and

    sudo service mysql restart
    
    • Just restarted apache and mysql. Logged in phpmyadmin again and it worked as usual.

    Thanks me..!!

    0 讨论(0)
  • 2020-11-29 22:15

    But if you are using Plesk, change your settings in :

    /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php

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

    And restart with Plesk UI or use:

    /etc/init.d/psa restart and /etc/init.d/httpd restart

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