How to dump all databases for backup. Backup file is sqlcommands to recreate all db's | Eklavya Online

How to dump all databases for backup. Backup file is sqlcommands to recreate all db’s

# [mysql dir]/bin/mysqldump -u root -ppassword –opt >/tmp/alldatabases.sql