Mysql

How to take Backup of MYSQL database sql file using MYSQLDUMP Command




For a single database:

mysqldump –opt –user=root –password database1 > singledb.sql

For multiple Backup of databases:

mysqldump –opt –user=root –password –databases database1 database2 > multipledb.sql

To import a MYSQL .sql file from one location to particular location :

source /home/SSI/process_databases_backup.sql