Hello all,
I am not able to restore my database to server via ssh.Anybody know
how to restore a database to dedicated server through SSH.
Thanks
Restore a database to dedicated server
-
- Posts: 5
- Joined: Thu Jan 22, 2015 4:42 pm
-
- Posts: 3
- Joined: Thu Jan 22, 2015 4:29 pm
Re: Restore a database to dedicated server
First logged in to dedicated server as root via SSH, and then go to the folder where we want to put the file of database. Once in it, type the following command to import it into the selected database:
mysql DATABASE_NAME < BACKUP.sql
DATABASE_NAME is replacing with the actual name of the database into which we want to save the backup.
mysql DATABASE_NAME < BACKUP.sql
DATABASE_NAME is replacing with the actual name of the database into which we want to save the backup.