[b]
BACKUP-RESTORE ON localhost
(See also Velocd's tutorial)
[high]TOOLS NEEDED[/high]
-
Open Command Window PowerToy - 0.5MB (for more info, visit
Microsoft site)
NOTE: This PowerToy adds an "Open Command Window Here" context menu option on file system folders, giving you a quick way to open a command window (cmd.exe) pointing at the selected folder.
[high]BACKUP PROCEDURE[/high]
01. Create a new folder, called 'C:\sqlback'.
02. Right-click on the [high]C:\Network\MySQL\bin[/high] folder and select 'Open Command Window Here'. A CMD window will open.
NOTE: You can also manually browse to the folder. Click on Start > Run > Type [high]cmd[/high] in the 'Open:' area and hit Enter.
At the CMD prompt, type [high]C:[/high] and hit Enter.
Type [high]cd network[/high] and hit Enter.
Type [high]cd mysql[/high] and hit Enter.
Type [high]cd bin[/high] and hit Enter.
03. At the prompt, type:
mysqldump --opt -u[high]USERNAME[/high] -p[high]PASSWORD[/high] [high]DATABASENAME[/high] > c:/sqlback/bk060502.sql
NOTE: Change the highlighted values with your own. When done, you will see the command prompt.
060502: month date year (easier to remember the last date you backup your database). Change it with the corresponding date of your actual backup.
[high]RESTORE PROCEDURE[/high]
This is useful if you want to import onto your localhost the live forum database.
01. Right-click on the [high]C:\Network\MySQL\bin[/high] folder and select 'Open Command Window Here'.
02. At the prompt, type:
mysql -u[high]USERNAME[/high] -p[high]PASSWORD[/high] [high]DATABASENAME[/high] < c:/sqlback/bk060502.sql
NOTE: Change the highlighted values with your own. When done, you will see the command prompt.