---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ydb.tech/docs/en/yql/reference/syntax/alter_database/owner.md?version=main
  - https://ydb.tech/docs/ru/yql/reference/syntax/alter_database/owner.md?version=main
sourcePath: en/core/yql/reference/syntax/alter_database/owner.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# Change database owner

Changes the database owner. Only a database administrator can perform this operation.

## Syntax

```yql
ALTER DATABASE path OWNER TO user_name;
```

### Parameters

* `path` — path to the database;
* `user_name` — name of the user who will become the database owner.

## Examples

Make user `user1` the owner of database `/Root/test`:

```yql
ALTER DATABASE `/Root/test` OWNER TO user1;
```
