mysql dump database to file with query code example Example: mysql dump with table query mysqldump db_name table_name --where="id > 1"