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 user password

AI-generated

Summary

Update a MySQL database user's password managed by cPanel through the WHM API.

Inputs

  • User (required) — The MySQL database username whose password you want to update. Refer to MySQL and MariaDB documentation for username restrictions.
  • Password (required) — The new password to set for the specified database user.
  • Cpuser — The cPanel user that controls the database user, provided as an additional optional field.

Output shape

a single JSON object containing the WHM API response indicating success or failure of the password update operation.

The response follows WHM API conventions and will include error details if the operation fails.

Links

Discussion