Skip to content
Tags

How to take Backup & Restore Database in MySQL

May 10, 2010

mysqlUsing mysqldump, you can backup a local database and restore it on a remote database at the same time, using a single command.
An examples on how to use mysqldump to backup and restore

To backup: # mysqldump -u root -p(root_password) (database_name) > filename.sql

To restore: # mysql -u root -p (root_password) (database_name) < filename.sql

Advertisements

From → MySQL

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: