--- title: "Specifying MySQL Processing Settings" description: "You can enable MySQL processing settings in the properties of a volume-level backup job configured in Veeam Agent for Linux." canonical: "https://helpcenter.veeam.com/docs/agentforlinux/userguide/backup_job_cmd_mysql_set.html" breadcrumb: "User Guide > Performing Backup > Creating Backup Jobs > Creating Backup Job with Command Line Interface > Configuring Database Processing Settings > Specifying MySQL Processing Settings" dateModified: "2026-11-06" --- # Specifying MySQL Processing Settings You can enable MySQL processing settings in the properties of a volume-level backup job configured in Veeam Agent for Linux. ## Before You Begin Veeam Agent locks all MySQL tables that use storage engines other than InnoDB, for example MyISAM, MEMORY, ARCHIVE or CSV, while it creates the system snapshot. InnoDB tables are transactional and are captured consistently by the snapshot. Veeam Agent does not lock InnoDB tables by default. To detect and lock non-InnoDB tables, the MySQL account used by Veeam Agent must have the following privileges: - `SELECT` — Required to read table metadata and detect non-InnoDB tables. Grant this privilege on every database that contains such tables. If the account lacks `SELECT` on a database, Veeam Agent cannot detect or lock its non-InnoDB tables. Processing completes successfully, but these tables may be captured in an inconsistent state. - `LOCK TABLES` — Required to lock detected non-InnoDB tables. Grant this privilege on every database that contains such tables. If the account can detect a table but cannot lock it, MySQL database system processing fails. If successful application processing is not required, processing completes with a warning and the tables remain unlocked. - `FLUSH_TABLES` or `RELOAD` — Required to run the `FLUSH TABLES ... WITH READ LOCK` statement. This privilege must be granted instance-wide, `ON *.*`. If non-InnoDB tables are detected but the account has neither privilege, locking fails and MySQL database system processing fails. If successful application processing is not required, processing completes with a warning and the tables remain unlocked. `FLUSH_TABLES` is available in MySQL 8.0.23 and later. For earlier MySQL versions and MariaDB, use `RELOAD`. To obtain information about the privileges that are assigned to an account, use MySQL functionality — for example, the `SHOW GRANTS` statement. To learn more, see [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/show-grants.html). ## Enabling MySQL Processing Settings To enable MySQL processing settings for the backup job, use the following command: ``` veeamconfig aap set mysql --jobid ``` or ``` veeamconfig aap set mysql --jobname ``` where: - `` — ID of the backup job for which you want to enable MySQL processing settings. You should look up the job ID in advance, before configuring MySQL processing settings, for example, with the `veeamconfig job list` command. To learn more, see [Viewing List of Backup Jobs](backup_job_list.md). - `` — name of the backup job for which you want to enable MySQL processing settings. - `` — MySQL processing settings for the backup job. To learn more, see [MySQL Processing Settings](#settings). ::: tip To view IDs or names of all existent backup jobs, you can press the [Tab] key right after you type the `--jobid` or `--jobname` option. ::: ## MySQL Processing Settings {#settings} You can specify the following MySQL processing settings for the backup job:

Option

Description and values

--tryprocess

Defines that Veeam Agent must continue the backup process if errors occur when processing the MySQL database system. If you do not specify this option, Veeam Agent will stop the backup process if an error occurs when processing the MySQL database system.

--usrmysqldb

Name of the MySQL account. Veeam Agent can connect to the MySQL database system in one of the following ways:

  • If you specify account name (--usrmysqldb option) only, Veeam Agent will prompt you to specify a password to access the MySQL database system.
  • If you specify account name and password (--usrmysqldb and --password options), Veeam Agent will access the MySQL database system.
  • If you do not specify account credentials (--usrmysqldb and --password options), Veeam Agent will use a password file to connect to the MySQL database system. To learn more about password file configuration, see Preparing Password File for MySQL Processing.

--password

Password of the MySQL account. If you do not specify the --password value, Veeam Agent will prompt you to specify a password to access the MySQL database.

Keep in mind, if you specify the password using the --password option, password is stored in terminal in plain text.

--defaults-file

Path to a password file. You must specify a full path to a password file if you want Veeam Agent to use a password file located in specific directory. Specifying relative paths is not supported.

With this method selected, you do not need to specify account credentials in the backup job settings.

You do not need this option in the following cases:

  • Veeam Agent uses account name and password that are specified in the backup job settings to connect to the MySQL database.
  • Veeam Agent uses account credentials that are stored in the password file in /root/.my.cnf.
## Examples Authentication with password: ``` user@srv01:~$ veeamconfig aap set mysql --jobid 29bc2e1a-e35c-4efb-8d37-b7177b8ea75 --tryprocess --usrmysqldb root --password P@ssw0rd ``` Authentication with password file: ``` user@srv01:~$ veeamconfig aap set mysql --jobid 29bc2e1a-e35c-4efb-8d37-b7177b8ea75 --tryprocess --defaults-file /data/root/.my.cnf ```