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. Veritas NetBackup™ for MySQL Administrator's Guide
  3. Installing NetBackup for MySQL Agent
  4. Authenticating the password
Veritas NetBackup™ for MySQL Administrator's Guide

Authenticating the password

Authenticating the password keeps you from specifying the password every time you run a backup. The my.cnf or the my.ini file stores the authentication credentials that the agent reads when it connects to the MySQL server. Make sure that you store the password in the MySQL environment variable.

The MySQL utility to encrypt the password lets you set, reset, and validate the password. The password encryption uses the port number to create a section name that corresponds to the instance to which the password belongs.

In MySQL v5.5.x, it reads the plain text authentication credentials from the MySQL configuration file my.cnf. To authenticate, under the client section, edit the my.cnf, or my.ini file to add the password. For example:

[client]

port=3306

password= type the password

In MySQL v5.6 and later, it reads the encrypted authentication credentials from the MySQL options .mylogin.cnf file.

To authenticate the password

  1. (Windows) Run the following command:

    mysql_config_editor.exe set --port=<portnumber> --password

    For example, if the portnumber is 3306:

    mysql_config_editor.exe set --port=3306 --password

  2. (Linux) Run the following command:

    mysql_config_editor set --port=<portnumber> --password

    For example, if the portnumber is 3306:

    mysql_config_editor set --port=3306 --password

  3. To reset the password, run the command that applies to your operating system:
    • (Windows) mysql_config_editor.exe reset

    • (Linux) mysql_config_editor reset

  4. To validate the password, run the command that applies to your operating system:
    • (Windows) mysql_config_editor.exe print --all

    • (Linux) mysql_config_editor print --all

Feedback

Was this page helpful?
Previous

Installing the NetBackup for MySQL Agent

Next

Uninstalling the NetBackup for MySQL Agent

Feedback

Was this page helpful?