Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Mar 29, 2010 3:25 pm 
Offline
Junior Member

Joined: Mon Mar 29, 2010 3:11 pm
Posts: 48
Website: http://www.tamerax.com
Location: Montreal, Quebec
Hey everyone!

First time posting here and I'm still very much a noob when it comes to the world of setting up my own server but I learn quickly.

The problem I'm having is I'm trying to migrate one of my sites to a linode server and I'm running into a problem importing the sql dump from the old server to the new server via Import in PhpMyAdmin.

It's a large sql file (38 megs) that is already on the server and in the phpmyadmin uploads folder so when I go to import, it's already available and I don't have to upload anything. I click import and it does about 16 of the tables and then gives a 504 Gateway Time-out error. The max_execution time is set to 240 (after changing it from 120 earlier thinking that might fix the problem).

I'm running mysql 5.1.43, php 5.2.12 and NGINX 0.7.65 on a linode 360.

I had no issues migrating my small wordpress sites but this one is a bit bigger.

Any help would be awesome! Thanks!!


Top
   
 Post subject:
PostPosted: Mon Mar 29, 2010 4:12 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
It's a message from the Nix gods to learn CLI (and drop that wacky phpmyadmin stuff).


Top
   
 Post subject:
PostPosted: Mon Mar 29, 2010 4:36 pm 
Offline
Junior Member

Joined: Mon Mar 29, 2010 3:11 pm
Posts: 48
Website: http://www.tamerax.com
Location: Montreal, Quebec
helpful as that was...
still doesn't seem like an error that should happen


Top
   
 Post subject:
PostPosted: Mon Mar 29, 2010 5:43 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
Try importing it from the command line. The error might be due to something being wrong, and on the command line you'll be able to see it.

If you have a file of SQL, it should be as simple as:

Code:
mysql -u user -p < dump.sql

This of course depends on how the dump was created. If you see DROP and CREATE DATABASE statements in the SQL, this'll work -- if not, you need to set up an infrastructure for it.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Mon Mar 29, 2010 5:46 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Set keepalive_timeout to 0 (infinity) in your nginx.conf -- that should hopefully fix it. You may want to change it back afterwards, obviously. Else use Jed's suggestion ;)

Cheers.


Top
   
 Post subject:
PostPosted: Tue Mar 30, 2010 1:52 pm 
Offline
Junior Member

Joined: Mon Mar 29, 2010 3:11 pm
Posts: 48
Website: http://www.tamerax.com
Location: Montreal, Quebec
thanks everyone for the help. not entirely sure what happened but I tired a different way off getting the sql dump and this one imported all the entries before giving me the timeout :P LOL!

now i have a bunch of nginx questions...but that is for another thread :)

cheers!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group