| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Suspended Join Date: Dec 2004 Location: Australia
Posts: 4,309
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Restoring Database through SSH I am trying to restore a 22MB database through phpMyAdmin but it always times out and it seems like it will never finish! I remember hearing on another forum that you can restore databases through SSH if they were really big. Does anyone know how i would be able to restore my database through SSH? I have SSH access.. Thanks in advance |
| |
| | #2 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Code: mysql -hdb3.domain.com -uusername -pXXXXXXXX username_dbname < file.sql so if your setup is as follows username - test_uname password - pass ????: NamePros.com http://www.namepros.com/programming/84096-restoring-database-through-ssh.html database name - forum database host - localhost sql file name - forum.sql the command would be :- Code: Code: mysql -hlocalhost -utest_uname -ppass forum < forum.sql
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | #3 (permalink) | ||||
| Senior Member Join Date: May 2003 Location: KING.NET
Posts: 3,479
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=84096 Goodluck, Em
__________________ Get your own .CO $28/yr http://NeedName.com KING.NET Advertise your products and services. Got Facebook, connect with me. http://facebook.com/domainnetwork WebeW.com - YA.NET Alternative Domain Name!. Use it for your site or blog. | ||||
| |
| | #4 (permalink) |
| NamePros Regular Join Date: Feb 2005
Posts: 579
![]() ![]() ![]() | If you dont have Shell access, what do you do?
__________________ Freebies and Giveaways - Printable Coupons - Hot Deals - Coupons - Deal of the Day |
| |
| | THREAD STARTER #5 (permalink) |
| Account Suspended Join Date: Dec 2004 Location: Australia
Posts: 4,309
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | What if the database is in a .gzip file? Guys, I ran this query through phpMyAdmin: mysql -hlocalhost -u*username* -p*pass* *db name* < C:\My Documents\My Received Files\ryaz_gfxforum[1].sql.gz It's still loading.. can anyone tell me if i did it right |
| |
| | #6 (permalink) | ||||
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | not 100% sure if you can use gz files to restore a db in ssh but you can always extract the files in ssh anyway. ????: NamePros.com http://www.namepros.com/showthread.php?t=84096
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft | ||||
| |
| | #8 (permalink) | ||||
| Senior Member Join Date: May 2003
Posts: 2,187
![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=84096 what youd need to do is if its in a .gz format upload it via ftp to your webspace then in ssh run this command Code: gunzip /path/to/file/blah.sql.gz | ||||
| |
| | THREAD STARTER #9 (permalink) |
| Account Suspended Join Date: Dec 2004 Location: Australia
Posts: 4,309
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Me and my friend have given up and decided to start over. All the members have started re-registering and posting and we currently have around 60 or more members It proves that we have some dedicated members ![]() Anyways, Thanks to everyone who has offered their help |
| |
| | #10 (permalink) |
| NamePros Regular Join Date: Feb 2005
Posts: 579
![]() ![]() ![]() | i still do not know how to restore using SHH to restore my database to DreamHost server. Could any1 kind enough to show me step by step.
__________________ Freebies and Giveaways - Printable Coupons - Hot Deals - Coupons - Deal of the Day |
| |
| | #11 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | do dreamhost give you ssh access?
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Database .cc - QDB, MDB, JDB | Mencus | Domain Appraisals | 8 | 12-16-2004 12:27 PM |
| Connecting to your SQL Database using Enterprise Manager | priyanka[imported] | Web Hosting Discussion | 1 | 12-07-2004 04:21 PM |
| Connecting to your SQL Database using Enterprise Manager | priyanka[imported] | Webmaster Tutorials | 0 | 12-06-2004 09:58 PM |
| A Beginner's Guide to Securing Your Server Part 1 of 3 (Security Inside WHM/CPanel) | 000000000 | Webmaster Tutorials | 7 | 10-09-2004 02:17 PM |
| help, help, help with phpBB installation | seraph | Programming | 2 | 10-05-2003 10:05 PM |