Normally it is not necessary to alter the user name or password used by the user agent to administer mysqld processes. However, if you should wish to do so, you can change either or both of these, using the procedure outlined here:
- Stop all agents. (You can use - stop agentsfor this purpose.)
- Update the agent configuration file. Set a new password by uncommenting the line containing - mcmd_password=and adding the new password as its value; set a new administrative user account name by uncommenting the line containing- mcmd_user=and setting the value to the new user name. See Section 4.1, “mcmd, the MySQL Cluster Manager Agent”, for more information about these options.
- For each mysqld do the following: - Log in (using the mysql client) as the MySQL - rootuser
- If you are changing the user name, do this first, using the following statement, where - olduseris the current user name and- newuseris the new- manager-userthat you set previously in the agent configuration file:- RENAME USER 'olduser'@'127.0.0.1' TO 'newuser'@'127.0.0.1';- If you are changing the user name for the first time, use - mcmdfor- olduser. In addition, you should use- 127.0.0.1for the host name (and not- localhost).
- Execute the following statement, where - newuseris the new user name, and- newpassis the new password:- SET PASSWORD FOR 'newuser'@'127.0.0.1' = PASSWORD('newpass');- Use - mcmdfor the user name if you have not changed it—that is, if- mcmd-userhas been left unset in the agent configuration file. Use- 127.0.0.1for the host name (and not- localhost).
- Issue a - FLUSH PRIVILEGESstatement.
 
- Restart the agents. All agents should now be using the new password for the - mcmdaccounts on the MySQL servers (mysqld processes).