I am trying to upload bump to phpmyadmin, which has has only 2MB but it has 12 thousand lines.

I always get this error:

Service Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.

I have max_input_time = 1000 max_execution_time = 1000

  • There are several php.ini settings which could restrict execution time, upload size or memory usage for php etc. Create a php file containing <?php phpinfo(); ?> and open it in your browser to check those values (max upload, max execution_time and memory_limit).
    – Michael D.
    Jan 25 '19 at 13:00
  • Import via shell: mysql -u username -p password database_name < filename.sql
    – Michael D.
    Jan 25 '19 at 13:05
  • I have max_input_time = 1000 max_execution_time = 1000 And file is SMALL around 2MB. So upload size it's not really, it setted up on 120MB.
    – Delirium
    Jan 29 '19 at 9:28

I had to edit apache2 main config and incrase TimeOut.

TimeOut 600

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.