> ## Documentation Index
> Fetch the complete documentation index at: https://docs.risingwave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ALTER SECRET

> Use the `ALTER SECRET` command to alter the secrets that store sensitive credentials.

Altering a secret does not change the secret used in a running job until the job is restarted (e.g., by restarting the cluster).

## Syntax

```sql theme={null}
ALTER SECRET secret_name WITH (
    backend = 'meta'
) AS 'your_new_secret';
```

## Parameters

| Parameter or Clause | Description                                                                            |
| :------------------ | :------------------------------------------------------------------------------------- |
| `secret_name`       | The name of the secret to be altered.                                                  |
| `backend`           | The backend where the secret is stored. Currently, only the meta backend is supported. |
| `your_new_secret`   | The new secret value that you wish to store securely.                                  |

## Example

```sql theme={null}
ALTER SECRET mysql_pwd WITH (
    backend = 'meta' 
) AS 'new_password';
```

## See also

<CardGroup>
  <Card title="Manage secrets" icon="key" icontype="solid" href="/operate/manage-secrets">
    A comprehensive guide for secret management operations
  </Card>

  <Card title="CREATE SECRET" icon="plus" iconType="solid" href="/sql/commands/sql-create-secret">
    Create a secret
  </Card>
</CardGroup>
