Change MySQL user password

Change the password for a MySQL database user. The new password takes effect immediately and affects all applications using the user.

Path Parameters

accountId integer · min: 1 required

accountId parameter

Headers

Accept Example
Content-Type Example

Body

required
application/json
username string required
newPassword string required

Responses

200 Successful response

No response body

PUT https://cloud.hostup.se/api/hosting/{accountId}/database-users/password
For AI assistants
cURL
curl -X PUT "https://cloud.hostup.se/api/hosting/0/database-users/password" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "string",
    "newPassword": "string"
  }'
Response
{}
Request Body
{
  "username": "string",
  "newPassword": "string"
}