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 6 Dec 2024
This crash most often occurs when you use the source
command to import large amounts of data, since it can only execute a limited amount of queries.
Instead, we recommend you use the MySQL import
command to import large amounts of data. For more detailed steps, see How to Import MySQL Databases into DigitalOcean Managed Databases
.
Update backup user permissions, remove the –single-transaction flag, or downgrade mysqldump.
Remove or replace the DEFINER in the dump file.
Adjust the sort_buffer_size value while assessing its impact on memory consumption and query performance.
Try using different keywords or simplifying your search terms.