Quote:
Originally Posted by Velocd
Quick Tutorial - How to backup/restore on a localhost
I thought I would make this because I fought alittle trying to get this working using the MSDOS shell, and found some things to be alittle different than from what backing up is usually like.
Once again, thanks to FWC for the tip, and also Logican from another post providing me some info
(note: done using Windows XP, should work on older OS also)
----------------------------------------------------------------------------------------
1. Copy and paste the following into your address bar, then hit enter: %SystemRoot%\system32\cmd.exe
2. Now depending on how you installed MySQL on your system, either with or without PHPTriad, you need to browse to that directory bin folder.
For example, if you did use PHPTriad, type cd c:\apache\mysql\bin.
3. For BACKING UP:
Type mysqldump -u username --opt database_name > backupfile.sql, filling in username and database_name with the correct values.
This method worked perfectly for me using the PHPTriad installation, should do the same with the other. If it asks you for a password, enter the password.
4. For RESTORING:
Type -u root -ppassword database_name < backupfile.sql in the command prompt.
You might get an error saying a table already exists, if so you need to clear your current database. Go into phpmyadmin and drop it that way. Be sure not to drop the whole database eliminating it, but just dropping the tables. Before doing this check your database backup you just created to make sure it actually created its and is not corrupt.
Thats it!
|
im having trouble trying to restore my sql file from my real boards to my test ones.
-root -password vbulletin < blakkboy_vb.sql
that is what im typing into the prompt but its saying that its not restoring.
can someone help me out who used triad to set this up?