Closed Thread
Results 1 to 6 of 6

Thread: Cannot upload SQL Data

  1. #1
    pasacom is offline x10Hosting Member pasacom is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    54

    Exclamation Cannot upload SQL Data

    Well, I moved here from another site who used cPanel. I was able to get a backup of my files and databases. Since I have 8,000 members on the site I run, the SQL databases are obviously very big. 3,623KB big.

    So, I try to upload the SQL file via phpMyAdmin and I always get an error like so:
    Fatal error: Maximum execution time of 300 seconds exceeded in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/import/sql.php on line 118
    There is a LOT of text in the database file and I do not know how to upload the content to the SQL server. I'm stumped. and confused and frustrated and really need my site to be up again, otherwise traffic dives.

    Can someone help me out? Could one of the admins upload the file for me? They shouldn't have a 300 second limit for SQL queries.

    Thanks for any and all help
    Last edited by pasacom; 02-22-2008 at 12:49 AM.

  2. #2
    Synkc's Avatar
    Synkc is offline Lord Of The Keys Synkc is an unknown quantity at this point
    Join Date
    Jun 2007
    Location
    Hervey Bay, Australia
    Posts
    1,765

    Re: Cannot upload SQL Data

    Have you tried dividing up the sql file into sections and importing each one separately, instead of trying to import the entire file at once?
    Last edited by Synkc; 02-22-2008 at 12:55 AM.
    E-mail: synkc[at]x10hosting[dot]com
    Hirokima.com

  3. #3
    pasacom is offline x10Hosting Member pasacom is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    54

    Re: Cannot upload SQL Data

    I tried that but there is one specific table called "users" and that's the tricky part. Everything else is easy to slice, dice, and insert into the database, but I can't, or don't know how, to cut up a table. My users table has over 8,000 rows and each row contains at least 15 options within them (e.g. username, display name, password, IP, etc.)

    I've tried importing just the users table by itself, but have failed at that as well and received the same error message. Any suggestions?
    Last edited by pasacom; 02-22-2008 at 02:12 AM.

  4. #4
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: Cannot upload SQL Data

    Divide the file up into multiple smaller parts and run each one individually. With a few small exceptions, most SQL queries should be able to be run individually, so it really does not matter where you split it up, as long as you run them in the correct order (top -> bottom).

    To 'cut up' the 'user' table, just cut/go down it like 1/4th of the way and run that in PHPMyAdmin, do the next 1/4th, etc etc.

  5. #5
    pasacom is offline x10Hosting Member pasacom is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    54

    Exclamation Re: Cannot upload SQL Data

    Quote Originally Posted by Bryon View Post
    Divide the file up into multiple smaller parts and run each one individually. With a few small exceptions, most SQL queries should be able to be run individually, so it really does not matter where you split it up, as long as you run them in the correct order (top -> bottom).

    To 'cut up' the 'user' table, just cut/go down it like 1/4th of the way and run that in PHPMyAdmin, do the next 1/4th, etc etc.
    I tried to cut up the table as you said, but I keep on getting SQL errors. There should be nothing wrong with the whole query. It was generated by cPanel itself (cPanel 11 on my old host).

    So I've failed to cut it up. I've attached a document with the query for the creation of table "e107_users" and the insertion of the data into that table.

    Can somebody take a look at that and tell me what's wrong or where I should chop it up?

    Thanks

    The attachment is clean:
    http://www.virustotal.com/analisis/6...71b1b25720f8c5
    Last edited by pasacom; 02-24-2008 at 06:37 PM.

  6. #6
    pasacom is offline x10Hosting Member pasacom is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    54

    Re: Cannot upload SQL Data

    Can anyone help?
    Last edited by pasacom; 02-25-2008 at 11:24 PM.

Closed Thread

Similar Threads

  1. Two very simple php file upload scripts-Free
    By Symbian.Ankit in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 02-20-2008, 09:55 AM
  2. Sql?
    By SLIForum in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 12-03-2007, 01:17 AM
  3. i last my sql data
    By sahil3x1 in forum Free Hosting
    Replies: 2
    Last Post: 08-28-2006, 06:31 AM
  4. my sql data base
    By mustaq in forum Free Hosting
    Replies: 6
    Last Post: 02-01-2006, 11:37 AM
  5. sQl error
    By THeLL in forum Free Hosting
    Replies: 1
    Last Post: 02-11-2005, 06:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers