--- title: "Preparing Password File for MySQL Processing" description: "You can use MySQL account credentials that are stored in the password file to connect Veeam Agent for Linux to the MySQL database system. Consider the following: If you specify a custom path to the password file, specify a full path." canonical: "https://helpcenter.veeam.com/docs/agentforlinux/userguide/mysql_pass_file_commline.html" breadcrumb: "User Guide > Performing Backup > Creating Backup Jobs > Creating Backup Job with Command Line Interface > Configuring Database Processing Settings > Specifying MySQL Processing Settings > Preparing Password File for MySQL Processing" dateModified: "2026-11-02" --- # Preparing Password File for MySQL Processing You can use MySQL account credentials that are stored in the password file to connect Veeam Agent for Linux to the MySQL database system. ::: note Consider the following: - If you specify a custom path to the password file, specify a full path. Specifying relative paths is not supported. - The password file can also contain user-specific connection settings that Veeam Agent will apply to connect to the MySQL database system. For example, if you want to connect to the MySQL database system using the custom socket, specify the socket path in the password file. To learn more, see [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/option-files.html). ::: If you want to use a password file for authentication, create a file. By default, Veeam Agent expects the password file to have the `.my.cnf` name and to be in the home directory of the `root` user. If the password file has a custom name or is stored in another directory, you can specify a custom path. The password file must have the following contents: ``` [client] user= password= ``` where: - `` — name of the account that Veeam Agent will use to connect to the MySQL database system. - `` — password of the account that Veeam Agent will use to connect to the MySQL database system. For example: ``` [client] user=root password=P@ssw0rd ```