PDA

View Full Version : How to get and restore database backup on linux server



rahulvs
08-04-2008, 03:56 PM
Hello,

For taking backup of you database you have to make sure that you database is good enough. with shell access you can take the database backup in .sql format with following command

#mysqldump user_databasename > database.sql

As you are having database backup and want to restore it then use following command

#mysql user_databasename < database.sql