![]() |
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 :) |
I will tell you....
for one million dollars. |
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 |
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:
EVEN THOUGH YOU ARE WRONG! |
Man, I was way off. Must be the blood in my beer system.
|
It's impossible to do, don't even try it!
|
Quote:
|
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 |
And good luck :winkwink:
|
Quote:
|
Quote:
Worked Beautifully! THANKS! :) |
Quote:
|
Quote:
Had that been his only copy of that sql dump, it would have been wiped out. |
Quote:
mysql -p databasename < databasenamefile.sql |
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? |
bump
|
All times are GMT -7. The time now is 09:23 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123