hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Restoring forum issue
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Restoring forum issue

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-13-2005, 04:41 AM
Blueheaven Blueheaven is offline
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476

Restoring forum issue


I'm having problems extracting my home tar file and was wondering if I could get around it by

1. Creating the domain account
2. Importing the Database from phpmyadmin(saved export)
3. Uploading and Installing a fresh new Forum to its original form

Will this work

3a If so, Can I use a different forum version
or it has to be installed with the same version?


Last edited by Blueheaven; 01-13-2005 at 04:54 AM.
Reply With Quote


Sponsored Links
  #2  
Old 01-13-2005, 05:11 AM
gate2vn gate2vn is offline
Web Hosting Master
 
Join Date: Oct 2003
Location: Hanoi
Posts: 4,282
You should do the same version. and uploading, installing it first, exactly the same with old one, then restore DB.

but why dont you move all your forum to server?

__________________
Clustered CloudLinux Hosting | WordPress Hosting | Advanced Antispam | Managed Xen VPS
in US West coast and Asia datacenters with Asia-Pacific friendly networks

Free migration to our servers. Contact us now on Twitter @vietnap

Reply With Quote
  #3  
Old 01-13-2005, 08:09 PM
Blueheaven Blueheaven is offline
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476
What if the sql file is too big for phpmyadmin, how could I go about importing it?

Reply With Quote
Sponsored Links
  #4  
Old 01-13-2005, 08:13 PM
adam adam is offline
Temporarily Suspended
 
Join Date: Nov 2002
Location: Under the sea
Posts: 4,208
You will need to login to SSH to do it then, how big is the file?

Reply With Quote
  #5  
Old 01-13-2005, 08:18 PM
Blueheaven Blueheaven is offline
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476
Its about 15mb, what commands would I use in ssh to import?

would this work?
=====================

If your database backup resides on your home computer, you will first have to upload it via FTP to your website
Open your SSH/Telnet client and log into your website. The command line prompt you will see will vary by OS.
For most hosting companies, this will bring you into the FTP root folder.

Type in the following:

mysql -u dbusername -p databasename < /path/to/backupname.sql

You will be prompted for the database password. Enter it and the database will backup.

If your hosting company has you on a remote MySQL server, such as mysql.yourhost.com, you will need to add the servername to the command line. The servername will be the same as in your config.php. The command line will be:

mysql -h servername -u dbusername -p databasename < /path/to/backupname.sql
===============


Last edited by Blueheaven; 01-13-2005 at 08:23 PM.
Reply With Quote
  #6  
Old 01-13-2005, 08:57 PM
gate2vn gate2vn is offline
Web Hosting Master
 
Join Date: Oct 2003
Location: Hanoi
Posts: 4,282
You have a detail instruction there

Code:
mysql -u dbusername -p databasename < /path/to/backupname.sql

__________________
Clustered CloudLinux Hosting | WordPress Hosting | Advanced Antispam | Managed Xen VPS
in US West coast and Asia datacenters with Asia-Pacific friendly networks

Free migration to our servers. Contact us now on Twitter @vietnap

Reply With Quote
  #7  
Old 01-13-2005, 09:48 PM
zekoslav zekoslav is offline
Junior Guru Wannabe
 
Join Date: Dec 2004
Posts: 44
mysqldump -uusername -p table_name> file.sql
password:enter it
it will dump it to file.sql
move it to some dir when you can access it through http
ssh to new host, wget www.oldhost.com/path/to/sqlbackup/file.sql
mysql -uusername -p table_name< opcije.sql

done

make sure that you created database and user on new host, and gave privileges to new user

Reply With Quote
  #8  
Old 01-14-2005, 12:52 AM
Blueheaven Blueheaven is offline
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476
mysql -u dbusername -p databasename < /path/to/backupname.sql
yep that option seemed to work for me, I wasnt using the < bracket but after I added it, the code worked.

I had to edit the username password and database name in forum config and then its seemed to work great

thankyou all for your help

Reply With Quote
  #9  
Old 01-14-2005, 05:42 PM
zekoslav zekoslav is offline
Junior Guru Wannabe
 
Join Date: Dec 2004
Posts: 44
Blueheaven and gate2vn
i belive you are wrong
syntax is
mysql -udbusername
not mysql -u dbusername

notice the space betwean -u and dbusername

Reply With Quote
  #10  
Old 01-14-2005, 10:07 PM
rasputinj rasputinj is offline
Web Hosting Master
 
Join Date: Jun 2003
Posts: 698
Quote:
Originally posted by zekoslav
Blueheaven and gate2vn
i belive you are wrong
syntax is
mysql -udbusername
not mysql -u dbusername

notice the space betwean -u and dbusername
I think you are wrong and BlueHeavan/gate2vn are right.

mysql -u Username -h localhost -p Password dbname < file_to_import_name



or you can use
user=Username --password=Password -- that is what I use.


If I wrong please let me know.

__________________
Rasputinj
DealSvengali.com Tech Deals Dell Deals

Reply With Quote
  #11  
Old 01-14-2005, 10:10 PM
rasputinj rasputinj is offline
Web Hosting Master
 
Join Date: Jun 2003
Posts: 698
Quote:
Originally posted by rasputinj
I think you are wrong and BlueHeavan/gate2vn are right.

mysql -u Username -h localhost -p Password dbname < file_to_import_name



or you can use
--user=Username --password=Password -- that is what I use.


If I wrong please let me know.

__________________
Rasputinj
DealSvengali.com Tech Deals Dell Deals

Reply With Quote
  #12  
Old 01-16-2005, 07:32 AM
Blueheaven Blueheaven is offline
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476
i think both examples could be right, but the one I used is definetely right as I just restored another php script.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
The Green Grid to Host Forum 2013 in Santa Clara Web Hosting News 2013-01-08 14:13:07
DEMO VIDEO: Idera Continuous Data Protection (Part 2) Whir Tv 2012-09-25 11:52:56
Entrust Leaves CA/Browser Forum, Cites New IP Rights Policy Web Hosting News 2012-08-10 16:08:45
Industry Group Issues SSL Certificate Issuing Standard Web Hosting News 2011-12-16 14:53:08
Web Host eUKhost Releases Mobile Forum App Web Hosting News 2011-06-22 18:58:31


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?