Backing up and restoring mysql database in Centos 5.5

To backup and restore mysql database in Centos 5.5.

 Backup: To backup a database use the following syntax
                #mysqldump -u databaseusername -p databasename > backupfilename.out

Restore: To restore the database backup file to new database:
               #mysql -u databaseusername -p newdatabasename < backupfilename.out

Hope this is very much helpful.

Comments

Popular posts from this blog

ACTION_FAILED:OU_INVALID: Solution for GoogleApps bulk user upload issue, username@domainname.com:ACTION_FAILED:OU_INVALID. This error is because you have not specified the Org Unit Path properly.

Email Notification in Koha! How to configure Email Notification in Koha 20.11 with postfix?

Solution to Moodle Error: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write.