---
title: How to Fix the mysqldump Couldn't Execute Flush Tables Access Denied Error?
url: https://docs.vultr.com/support/products/storage/databases/mysql/how-to-fix-the-mysqldump-couldnt-execute-flush-tables-access-denied-error
description: Grant RELOAD and PROCESS to the backup user so mysqldump can run FLUSH TABLES on Vultr Managed MySQL.
publish_date: 2025-09-15T13:58:44.552798Z
last_updated: 2026-10-26T23:32:50.455509Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

An [update to the MySQL server](https://github.com/mysql/mysql-server/commit/022e73ba6976b984658a1c2652178cd4b81aec28) introduced a fix for a bug where `mysqldump` with `--single-transaction` could produce inconsistent backups. This inconsistency occurred because the GTID set was captured before the transaction snapshot, leading to a mismatch between the GTID set and the actual data. The fix implemented the use of `FLUSH TABLES WITH READ LOCK` (FTWRL) to ensure a consistent snapshot by locking all tables during the backup process.

Executing `mysqldump` with certain flags causes it to internally run `FLUSH TABLES WITH READ LOCK`. To successfully perform this operation, the MySQL user needs the global `RELOAD` and `PROCESS` privileges (`ON *.*`). Without these privileges, mysqldump fails with an "Access Denied" error.

## Update Backup User Permissions

To resolve this issue, follow these steps to verify and update your backup user's privileges:

1. [Connect to your database](https://docs.vultr.com/products/storage/databases/mysql/management/connection/connection-details) as an admin user, such as `vultradmin`:

    ```console
    $ mysql -h [HOST] -P [PORT] -u vultradmin -p
    ```

1. Verify the backup user's privileges:

    ```sql
    mysql> SELECT User, Host, Process_priv, Reload_priv FROM mysql.user WHERE User = '<username>';
    ```

    Confirm the `Host` value matches your connection source (commonly `%` for all hosts unless restricted).

1. Grant the required global privileges:

    ```sql
    mysql> GRANT RELOAD, PROCESS ON *.* TO '<username>'@'%';
    mysql> FLUSH PRIVILEGES;
    ```

1. Re-check the privileges to confirm the update:

    ```sql
    mysql> SELECT User, Host, Process_priv, Reload_priv FROM mysql.user WHERE User = '<username>';
    ```

    Ensure there is a `Y` under both `Process_priv` and `Reload_priv`.

1. Retry your `mysqldump` command.

This will let your backup user to perform `FLUSH TABLES WITH READ LOCK` successfully, preventing "Access denied" errors when running `mysqldump` backups.

>[!WARNING]
>Granting global privileges like `RELOAD` and `PROCESS` should be done cautiously and only to trusted users, as these privileges allow significant control over the server. If granting these privileges is not feasible, consider using Vultr's managed backup solutions or adjusting your mysqldump strategy to minimize the need for FTWRL.
