Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7928677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:48:34+00:00 2026-06-03T19:48:34+00:00

Originally, my question was related to the fact that PhpMyAdmin’s SQL section wasn’t working

  • 0

Originally, my question was related to the fact that PhpMyAdmin’s SQL section wasn’t working properly. As suggested in the comments, I realized that it was the amount of the input is impossible to handle. However, this didn’t provide me with a valid solution of how to deal with the files that have (in my case – 35 thousand record lines) in format of (CSV):

...
20120509,126,1590.6,0
20120509,127,1590.7,1
20120509,129,1590.7,6
...

The Import option in PhpMyadmin is struggling just as the basic copy-paste input in SQL section does. This time, same as previously, it takes 5 minutes until the max execution time is called and then it stops. What is interesting tho, it adds like 6-7 thousand of records into the table. So that means the input actually goes through and does that almost successfully. I also tried halving the amount of data in the file. Nothing has changed however.

There is clearly something wrong now. It is pretty annoying to have to play with the data in php script when simple data import is not work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:48:36+00:00Added an answer on June 3, 2026 at 7:48 pm

    Change your php upload max size.

    Do you know where your php.ini file is?

    First of all, try putting this file into your web root:

    phpinfo.php
    

    ( see http://php.net/manual/en/function.phpinfo.php )

    containing:

    <?php
    
    phpinfo();
    
    ?>
    

    Then navigate to http://www.yoursite.com/phpinfo.php

    Look for “php.ini”.

    To upload large files you need max_execution_time, post_max_size, upload_max_filesize

    Also, do you know where your error.log file is? It would hopefully give you a clue as to what is going wrong.

    EDIT:

    Here is the query I use for the file import:

    $query = "LOAD DATA LOCAL INFILE '$file_name' INTO TABLE `$table_name` FIELDS TERMINATED BY ',' OPTIONALLY
        ENCLOSED BY '\"' LINES TERMINATED BY '$nl'";
    

    Where $file_name is the temporary filename from php global variable $_FILES, $table_name is the table already prepared for import, and $nl is a variable for the csv line endings (default to windows line endings but I have an option to select linux line endings).

    The other thing is that the table ($table_name) in my script is prepared in advance by first scanning the csv to determine column types. After it determines appropriate column types, it creates the MySQL table to receive the data.

    I suggest you try creating the MySQL table definition first, to match what’s in the file (data types, character lengths, etc). Then try the above query and see how fast it runs. I don’t know how much of a factor the MySQL table definition is on speed.

    Also, I have no indexes defined in the table until AFTER the data is loaded. Indexes slow down data loading.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question was originally asked for Android 1.6. I am working on photos options
I originally started this question in another thread, but that thread was sorta, kinda
Originally posted on Server Fault , where it was suggested this question might better
So herein lies my question. Django project that was originally developed several years ago
Original question has been answered. Update addresses related question raised in comments. Original post:
This issue originally came up in a related question of mine where I was
I originally asked a related question here , but didn't really seem to get
This is an offshoot question that's related to another I asked here . I'm
Note this question was originally posted in 2009, before C++11 was ratified and before
Original Question: i read that for RESTful websites. it is not good to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.