> mysqldump -uusername -ppassword databasename > database-backup.sql
> mysqldump -uusername -ppassword databasename specific_table1 specific_table2 > database-backup.sql
> mysqldump -uusername -ppassword –databases databasename1 databasename2 databasename3 > database-backup.sql
> mysqldump --no-data -uusername -ppassword databasename > database-structure.sql
> mysqldump --no-data -uusername -ppassword –-databases databasename1 databasename2 databasename3 > database-structure.sql
> mysqldump –all-databases > database-backup.sql
>mysql -uusername -ppassword databasename < database-backup.sql
评论