Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. NetBackup™ for MariaDB Administrator's Guide
  3. Introduction to NetBackup for MariaDB
  4. Authenticating the MariaDB environment password
NetBackup™ for MariaDB Administrator's Guide

Authenticating the MariaDB environment password

Authenticating the MariaDB environment password keeps you from specifying the password every time you run a backup. The (Windows) my.ini file and the (Linux) my.cnf file stores the password and the application picks the password every time you run a backup.

Authenticating the password

The agent reads the plaintext authentication credentials from the my.cnf file in Linux and my.ini file in Windows.

Prerequisites

Before you authenticate the password, you must meet the following prerequisites:

  • (Windows) Set the user environment variable NBMARIADB_CNF_<port> to point to my.ini file.

  • (Linux) Set the user environment variable NBMARIADB_CNF_<port> to point to my.cnf file. and include the Mariadb bin directory in $PATH.

To authenticate the password

  1. Add the client section.
  2. Under the Client section, edit the my.ini or my.cnf file to add the password. For example,

    [client]

    port=3306

    password=<password>

    Note:

    If password is not added under client section, then you can mention the section name using NBMARIADB_CNF_SECTION_<port>.

    Note:

    For this environment variable, specify NBMARIADB_CNF_<port> variable.

    For example:

    • For Linux, use command: echo "export NBMARIADB_CNF_SECTION_3306=instance1" >> ~/.bashrc

    • For windows, user can create new environment variable and add name of section as: NBMARIADB_CNF_SECTION_3306=instance1

  3. To verify the password authentication, login to MariaDB server using the following command:

    mysql -u <user>

Feedback

Was this page helpful?
Previous

Post-installation requirements for NetBackup

Next

Configuring the NetBackup for MariaDB

Feedback

Was this page helpful?