1) Is mysqldump text backup or binary
backup
It is a text backup . If you open the backup file you will see
all the statements that can be used to recreate databases and
objects . It also has the insert statements to populate the
tables with data
2) What is the syntax for mysqldump ?
mysqldump -u [uname] -p[pass] –databases [dbname][dbname2] >
[backupfile.sql]
3) How to backup all databases using mysqldump
?
mysqldump -u root -p –all-databases > backupfile.sql
4) How to backup specific databases using mysqldump
?
mysqldump -u root -p –databases school hospital >
backupfile.sql
5) How to backup specific tables using mysqldump
?
mysqldump –user=root –password=mypassword -h localhost
databasename table_name_to_dump table_name_to_dump_2 >
dump_only_two_tables_file.sql