cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Database → Update MySQL root password

AI-generated

Summary

Update the MySQL root user's password on the WHM server and optionally update the MySQL configuration files.

Inputs

  • Password (required) — The new password for the MySQL root user.
  • Additional Fields — Optional fields including whether to update MySQL configuration files ('Update Config' option: 1 to update, 0 to not update). This field must be explicitly set when using a remote profile, and is always enabled for the localhost profile.

Output shape

A JSON response object from the WHM API indicating success or failure of the password update operation.

The response reflects the WHM server's result of changing the MySQL root password. If 'Update Config' is enabled, the MySQL configuration files will be updated accordingly; otherwise, only the password change is attempted. Error details will be provided if the operation fails.

Links

Discussion