Veritas NetBackup™ for MySQL Administrator's Guide

Last Published:
Product(s): NetBackup (8.2)
Platform: Linux,UNIX,Windows

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 --login-path=<portnumber> --password

    For example, if the portnumber is 3306:

    mysql_config_editor.exe set --login-path=3306 --password

  2. (Linux) Run the following command:

    mysql_config_editor set --login-path=<portnumber> --password

    For example, if the portnumber is 3306:

    mysql_config_editor set --login-path=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