The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Importing big text file to SQL generates 500 Internal Server Error

Discussion in 'Database Discussions' started by imniclas, Jun 15, 2012.

  1. imniclas

    imniclas Registered

    Joined:
    Jun 15, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello!
    Have a customer who has a PHP script that's importing a large .txt file to MySQL. Have always worked very well but now is the file over 250MB with a lot of rows.

    Exactly after the script have runned for 4 minutes it just stops and generates a 500 Internal Server Error in the users web browser. The SQL is then around 220MB and has about 280 000 rows.

    I have tried to maximize all limits in php.ini and also the time out in Apache Configuration in WHM but nothing helps.

    Am I missing something?

    Appreciate all advice I can get. I can not help the customer any further...
     
  2. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    restore the SQL dump from SSH, faster and have no problem with php/http timeout
     
Loading...
Similar Threads - Importing big text
  1. saranyabasu
    Replies:
    10
    Views:
    221
  2. omoe
    Replies:
    2
    Views:
    406

Share This Page