Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-01-2004, 06:46 PM   #1
x2dio
Confirmed User
 
Join Date: Jun 2003
Posts: 101
MYSQL problems please help me! somebody!

Hi I have a .sql file I need to import into a mysql Db, the problem is I cannot do it thru MYPHPADMIN because the file is too big and my browser locks up.

how can I do this thru ssh??


someone plz
__________________
<hahahahaha src="http://www.x2dio.com/sig/sig.swf" quality=high type="application/x-shockwave-flash" width="100" height="100" menu="false"></hahahahaha><br><br>x2dio.com - Design Overload - Coming Soon<br>
203814376
x2dio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 06:47 PM   #2
- Jesus Christ -
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
I will tell you....




for one million dollars.
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 06:48 PM   #3
CS-Jay
Confirmed User
 
CS-Jay's Avatar
 
Join Date: Oct 2003
Location: Command Central, West Palm Beach, Fl
Posts: 1,794
if my memory servers me:

mysql -p databasename > datebasenamefile.sql

and you have to create the database first.

I don't have my files at home, but I think that's right.

J
__________________
I do stuff - aIm CS_Jay_D
CS-Jay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 06:48 PM   #4
- Jesus Christ -
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
Ok the one million dollar paypal pament you made (after we arranged the details over ICQ) has been recieved.


mysql -uUSERNAME -p newdbname < /path/to/dump.sql


Quote:
Originally posted by CS-Jay
if my memory servers me:

mysql -p databasename > datebasenamefile.sql

and you have to create the database first.

I don't have my files at home, but I think that's right.

J
STOP TRYING TO FUCK WITH MY BLING!

EVEN THOUGH YOU ARE WRONG!
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 06:49 PM   #5
CS-Jay
Confirmed User
 
CS-Jay's Avatar
 
Join Date: Oct 2003
Location: Command Central, West Palm Beach, Fl
Posts: 1,794
Man, I was way off. Must be the blood in my beer system.
__________________
I do stuff - aIm CS_Jay_D
CS-Jay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 06:51 PM   #6
Mr.Fiction
Confirmed User
 
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
It's impossible to do, don't even try it!
__________________
Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA
Mr.Fiction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 06:51 PM   #7
- Jesus Christ -
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
Quote:
Originally posted by CS-Jay
Man, I was way off. Must be the blood in my beer system.
Beer makes dumb, eat musroom.
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 06:53 PM   #8
JamesK
hi
 
Industry Role:
Join Date: Jun 2002
Posts: 16,731
Ok listen up.

First create a new database in MyPHPAdmin.

Then use telnet/ssh and connect to your server (if you don't have access, contact your host and ask them for access).

Upload the .SQL file with FTP/Telnet to the root and then type this in telnet/ssh:

mysql -u username -p newdbname < nameofdb.sql

username = mysql username
newdbname = the name of the db you just created in MyPHPAdmin
__________________
M3Server - NATS Hosting
JamesK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 06:54 PM   #9
JamesK
hi
 
Industry Role:
Join Date: Jun 2002
Posts: 16,731
And good luck
__________________
M3Server - NATS Hosting
JamesK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 06:54 PM   #10
CS-Jay
Confirmed User
 
CS-Jay's Avatar
 
Join Date: Oct 2003
Location: Command Central, West Palm Beach, Fl
Posts: 1,794
Quote:
Originally posted by - Jesus Christ -
Beer makes dumb, eat musroom.
I had mushrooms on my pizza, but I drank beer....don't those two just cancel each other out?
__________________
I do stuff - aIm CS_Jay_D
CS-Jay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 07:18 PM   #11
x2dio
Confirmed User
 
Join Date: Jun 2003
Posts: 101
Quote:
Originally posted by Wildcard
Ok listen up.

First create a new database in MyPHPAdmin.

Then use telnet/ssh and connect to your server (if you don't have access, contact your host and ask them for access).

Upload the .SQL file with FTP/Telnet to the root and then type this in telnet/ssh:

mysql -u username -p newdbname < nameofdb.sql

username = mysql username
newdbname = the name of the db you just created in MyPHPAdmin


Worked Beautifully!

THANKS!
__________________
<hahahahaha src="http://www.x2dio.com/sig/sig.swf" quality=high type="application/x-shockwave-flash" width="100" height="100" menu="false"></hahahahaha><br><br>x2dio.com - Design Overload - Coming Soon<br>
203814376
x2dio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 07:19 PM   #12
JamesK
hi
 
Industry Role:
Join Date: Jun 2002
Posts: 16,731
Quote:
Originally posted by x2dio




Worked Beautifully!

THANKS!
Np I had a shitload of trouble with it before. I know how fucking annoying it is. That's the only reason I'm helping you
__________________
M3Server - NATS Hosting
JamesK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 07:48 PM   #13
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,117
Quote:
Originally posted by CS-Jay
if my memory servers me:

mysql -p databasename > datebasenamefile.sql

and you have to create the database first.

I don't have my files at home, but I think that's right.
If you don't know, you shouldn't answer.

Had that been his only copy of that sql dump, it would have been wiped out.
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2004, 07:51 PM   #14
Ben-MensNiche
Confirmed User
 
Join Date: Dec 2003
Location: Victoria, BC, Canada
Posts: 726
Quote:
Originally posted by CS-Jay
if my memory servers me:

mysql -p databasename > datebasenamefile.sql

and you have to create the database first.

I don't have my files at home, but I think that's right.

J
That dumps the database to a .sql file named databasefilename.sql you need the pipe the other way around.

mysql -p databasename < databasenamefile.sql
__________________

ICQ: 310539245
Email: [email protected]

Last edited by Ben-MensNiche; 01-01-2004 at 07:53 PM..
Ben-MensNiche is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2004, 03:10 PM   #15
x2dio
Confirmed User
 
Join Date: Jun 2003
Posts: 101
Hey guys

im trying to do this again now, and it seems like everything is copying over with no errors..

but when I got to check the database there is no data in it??

has that ever happened to anyone?
__________________
<hahahahaha src="http://www.x2dio.com/sig/sig.swf" quality=high type="application/x-shockwave-flash" width="100" height="100" menu="false"></hahahahaha><br><br>x2dio.com - Design Overload - Coming Soon<br>
203814376
x2dio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2004, 03:56 PM   #16
x2dio
Confirmed User
 
Join Date: Jun 2003
Posts: 101
bump
__________________
<hahahahaha src="http://www.x2dio.com/sig/sig.swf" quality=high type="application/x-shockwave-flash" width="100" height="100" menu="false"></hahahahaha><br><br>x2dio.com - Design Overload - Coming Soon<br>
203814376
x2dio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.