Webmaster Forum  

Go Back   Webmaster Forum > Free Host Forum Announcements > Announcements And Feedbacks
User Name
Password
Register FAQ Members List Calendar Transactions Store Search Today's Posts Mark Forums Read


Backing-Up and restoring the Current Database

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-20-2005, 21:30
free
Administrator

free's Avatar

Join Date: Dec 2004
Posts: 412
Trader Rating: (10)
Points: 350 (Donate)
5 F$/Referral Refer Friends
free is on a distinguished road
Default Backing-Up and restoring the Current Database

<TABLE cellSpacing=0 cellPadding=5 border=0><TBODY><TR vAlign=top><TD class=Mstepnum>1

</TD><TD class=Msteptext width="100%">Telnet/SSH into the server where your vBulletin is currently installed. We will call this machine1.</TD></TR><TR vAlign=top><TD class=Mstepnum>2</TD><TD class=Msteptext width="100%">Type:
mysqldump --opt -Q -uUSERNAME -p DATABASENAME > /PATH/TO/DUMP.SQL


> c:\dump.sql


In this line, you should change the following:
  • USERNAME 每 this is the username you use to access MySQL. It is specified in your config.php file.
  • DATABASENAME 每 the name of the database which your vBulletin is installed into. It is specified in your config.php file.
  • /PATH/TO/DUMP.SQL 每 this is the path to the file that will be outputted. If you are unsure what to put here, simply use vb_backup.sql or something similar.
Once you press enter, you will be prompted for the password you use to access MySQL. This is also specified in your config.php file.
</TD></TR><TR vAlign=top><TD class=Mstepnum>3</TD><TD class=Msteptext width="100%">Once it has returned to the prompt, verify that DUMP.SQL exists in the directory you specified. If you did not specify a full directory, the file will be in the directory you are currently in.


2) Transferring to the New Server

<TABLE cellSpacing=0 cellPadding=5 border=0><!--<tr><td nowrap="nowrap">Step Num</td><td>Instruction</td></tr>--><TBODY><TR vAlign=top><TD class=Mstepnum>1</TD><TD class=Msteptext width="100%">Telnet/SSH into machine1 if you have not already.</TD></TR><TR vAlign=top><TD class=Mstepnum>2</TD><TD class=Msteptext width="100%">Type:
ftp MACHINE2
Replace MACHINE2 with the host name (www.example.com) or IP address (192.168.1.1) of the new server.


You should be prompted for a username and password. This is the username and password that you use to login via FTP to your new server.
</TD></TR><TR vAlign=top><TD class=Mstepnum>3</TD><TD class=Msteptext width="100%">Type the following:
asc

cd /PATH/TO/NEW/DIRECTORY
put /PATH/TO/DUMP.SQL

put c:dump.sql


Here you should change:
  • /PATH/TO/NEW/DIRECTORY 每 this is the path to the directory in which you want to place the database backup. If you are unsure what to specify here, you can usually omit the entire cd /PATH/TO/NEWDIRECTORY/ command.
  • /PATH/TO/DUMP.SQL 每 this is the same path that you specified in step 1.
</TD></TR><TR vAlign=top><TD class=Mstepnum>4</TD><TD class=Msteptext width="100%">Once these commands have finished, type:
close

quit
</TD></TR><TR vAlign=top><TD class=Mstepnum>5</TD><TD class=Msteptext width="100%">Verify that DUMP.SQL is in /PATH/TO/NEW/DIRECTORY on the new server.</TD></TR></TBODY></TABLE>
3) Restoring the Database on the New Server <TABLE cellSpacing=0 cellPadding=5 border=0><!--<tr><td nowrap="nowrap">Step Num</td><td>Instruction</td></tr>--><TBODY><TR vAlign=top><TD class=Mstepnum>1</TD><TD class=Msteptext width="100%">On the new server, if necessary, create the database which your vBulletin will be installed in. Refer to your host for specific information on how this is done.</TD></TR><TR vAlign=top><TD class=Mstepnum>2</TD><TD class=Msteptext width="100%">Telnet/SSH into machine2.</TD></TR><TR vAlign=top><TD class=Mstepnum>3</TD><TD class=Msteptext width="100%">Type:
mysql -uUSERNAME -p NEWDBNAME < /PATH/TO/NEW/DUMP.SQL
You should change the following parts of this line:
  • USERNAME - this is the new username which you will use to access MySQL. If you do not know this value, you should contact your host.
  • NEWDBNAME - the name of the new database that you created in the first part of this step.
  • /PATH/TO/NEW/DUMP.SQL - this is the path to the backup file that you transferred to this server in step 2.
</TD></TR></TBODY></TABLE>

</TD></TR></TBODY></TABLE>
free is offline
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Resources : | Advertise at FHF | itextLink.com| Reseller Hosting| TextDot| iNamePros| Any Webmaster| Web Host| Dep3| cheap low cost web hosting reviews|


All times are GMT -4. The time now is 13:53.


Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.