Welcome to the Real Estate Forum


The "ORIGINAL" Real Estate Social Network" SINCE 2005 and your #1 Resource for all things Real Estate


  •  »Over 35,000 Members
  •  » Answer Questions From "REAL" Buyers & Sellers
  •  »Ask Questions & Share Stories With Fellow Real Estate Professionals.
  •  »Read Articles & Blogs written by Real Estate Professionals.

...you have come to the right place!


YES! I want to register an account for free right now!


p.s.: For registered members YOUR FORUM NAME is free of ads

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    james9888 is offline Banned
    Join Date
    Feb 2011
    Posts
    218

    Default shows me this error- You probably tried to upload too large file

    I have exported 20 mb sql file with phpmyadmin and when i trying to import that file with phpmyadmin it shows me this error You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit. Any one can please give me suggestion how can i solve this error?

  2. #2
    rfresh's Avatar
    rfresh is offline Fixer Upper
    Join Date
    Nov 2009
    Location
    Los Angeles
    Posts
    62

    Default

    Yes, your file is too large to import.

    Email it to your hosting provider and have them do the import. If they won't do it for you or want to charge you to do it, change hosting providers fast!

    Problem solved!
    RalphF
    Low Cost Business Text Messaging
    www.MobileTextingService.com

  3. #3
    BlueSoft is offline Fixer Upper
    Join Date
    Jun 2011
    Posts
    29

    Default

    Dam this guy above me must have a web hosting company that's his solution to freaking everything.

    Most servers have a file upload limit either change this in your php.ini file or if that isn't possible try cutting your SQL file into multiple files, look at the pattern it should be easy to tell the beginning and end of each SQL statement, just cut it in half and run them separately to get around this.
    Real Estate Portal Software - Fully Featured Real Estate Portal Software for Newspaper's, Real Estate Agents, & Entrepreneurs

  4. #4
    rfresh's Avatar
    rfresh is offline Fixer Upper
    Join Date
    Nov 2009
    Location
    Los Angeles
    Posts
    62

    Default

    Why should this guy have to cut his SQL file in half? That's just stupid. Just because his hosting provider won't do the import? Get real, the guy needs a new hosting provider...and I didn't say which one, so he can go where ever he pleases. Don't jump to conclusions so fast.
    RalphF
    Low Cost Business Text Messaging
    www.MobileTextingService.com

  5. #5
    BlueSoft is offline Fixer Upper
    Join Date
    Jun 2011
    Posts
    29

    Default

    Sending a SQL file to your web host to upload is just silly, will you be sending it as an attachment? It takes 2 seconds to split an SQL file. Switching web host providers is pretty drastic solution to uploading a large file.
    Real Estate Portal Software - Fully Featured Real Estate Portal Software for Newspaper's, Real Estate Agents, & Entrepreneurs

  6. #6
    rfresh's Avatar
    rfresh is offline Fixer Upper
    Join Date
    Nov 2009
    Location
    Los Angeles
    Posts
    62

    Default

    (duplicated post when I clicked submit and nothing happened)
    Last edited by rfresh; 06-13-2011 at 09:30 PM.
    RalphF
    Low Cost Business Text Messaging
    www.MobileTextingService.com

  7. #7
    rfresh's Avatar
    rfresh is offline Fixer Upper
    Join Date
    Nov 2009
    Location
    Los Angeles
    Posts
    62

    Default

    Once again, not true. It's not as easy as you say it is to split an SQL file. If you've never done it before, you wouldn't know that you can't actually just "split it in two" as you say.

    You're going to split on the inserts but you can't just split the file like that. If you did and tried to import them, one would work (maybe if you did it right) and the other definitely wouldn't work. You'd need to know how to start and end each file you're going to import.

    If your hosting provider won't import the file for you, you may not know how bad that is and they don't deserve your business. If they don't do that, then there are probably a lot of other things they aren't doing for you that they should. It's just an indicator.
    RalphF
    Low Cost Business Text Messaging
    www.MobileTextingService.com

  8. #8
    BlueSoft is offline Fixer Upper
    Join Date
    Jun 2011
    Posts
    29

    Default

    INSERT INTO table_name
    VALUES (value1, value2, value3,...)

    That is an SQL INSERT statement your file will look like this

    INSERT INTO table_name
    VALUES (value1, value2, value3,...)
    INSERT INTO table_name
    VALUES (value1, value2, value3,...)
    INSERT INTO table_name
    VALUES (value1, value2, value3,...)
    INSERT INTO table_name
    VALUES (value1, value2, value3,...)

    Just split them at the end of one statement like so

    file 1
    INSERT INTO table_name
    VALUES (value1, value2, value3,...)
    INSERT INTO table_name
    VALUES (value1, value2, value3,...)

    file 2
    INSERT INTO table_name
    VALUES (value1, value2, value3,...)
    INSERT INTO table_name
    VALUES (value1, value2, value3,...)


    Not too difficult and there is nothing else you need, a SQL file contains just SQL statements and possibly comments which are not parsed but MySQL anyway. Not sure why this would be such a problem.

    Some data is private and needs to be secure sending it to a random tech support guy at abchost might not be the best idea for security conscious developers. I personally like to keep my data between me and my database, but that's just me.
    Real Estate Portal Software - Fully Featured Real Estate Portal Software for Newspaper's, Real Estate Agents, & Entrepreneurs

  9. #9
    rfresh's Avatar
    rfresh is offline Fixer Upper
    Join Date
    Nov 2009
    Location
    Los Angeles
    Posts
    62

    Default

    @James

    Check your import file structure carefully. You simply cannot have just insert statements. It is more complex than that. You will need most, if not all, of the following structural parameters as well for each file if you decide to split it:

    -CREATE TABLE IF NOT EXISTS `Table_Name_Here`
    -PRIMARY KEY (`Table_Name_Here`)
    -KEY `Name` (`Table_Name_Here`)
    -SQL ENGINE TYPE=
    -DEFAULT CHARSET=
    -AUTO_INCREMENT=175

    We wish you all the best with your import.
    RalphF
    Low Cost Business Text Messaging
    www.MobileTextingService.com

  10. #10
    BlueSoft is offline Fixer Upper
    Join Date
    Jun 2011
    Posts
    29

    Default

    Why can you not have just an INSERT statement?

    What the guy above is doing is also creating the tables if the tables already exist all you need is INSERT statements to fill in the data.

    When you do an export of just data you are left with just inserts. You do not need to create the tables everytime.

    He only needs the other information if the tables don't exist, besides what you wrote is still a statement just one that creates the table first if it does not exist. So again just look for the end of each statement, nothing needs to precede your statements.
    Real Estate Portal Software - Fully Featured Real Estate Portal Software for Newspaper's, Real Estate Agents, & Entrepreneurs

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •