How do I fix the mysqldump "Couldn't execute FLUSH TABLES Access denied" error?
Update backup user permissions, remove the –single-transaction flag, or downgrade mysqldump.
Validated on 20 Nov 2024 • Last edited on 18 Mar 2026
ERROR 1049 (42000): Unknown database 'default'
An Unknown Database error occurs when:
If you are getting this error:
Update backup user permissions, remove the –single-transaction flag, or downgrade mysqldump.
Use MySQL’s import command instead of source for handling large data imports.
Remove or replace the DEFINER in the dump file.
Try using different keywords or simplifying your search terms.