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

# Admin Mode

<Warning>
  Be really careful when using Admin Mode, since you are taking full control of your database.
</Warning>

If you are a `Workspace Admin` or `Workspace DBA` or granted a [custom role](/administration/roles) having the `bb.admin.sql` permission, you can
break the glass and execute arbitrary statements.

## Run query in Admin Mode

Click **Admin Mode** button to open a separate Admin Mode tab. Note that this is only available for DBAs and Workspace Admins.

<img src="https://mintcdn.com/dbx/yhR4_AKNF_MEUOA1/content/docs/sql-editor/admin-mode-button.webp?fit=max&auto=format&n=yhR4_AKNF_MEUOA1&q=85&s=3d42142defa9d6101c74b330c5bba223" alt="Admin Mode Button" width="1282" height="542" data-path="content/docs/sql-editor/admin-mode-button.webp" />

In Admin Mode, you are not limited to run SELECT, DDL and DML change queries subject to the [statement execution policy](/change-database/environment-policy/overview#statement-execution-mode), but also allowed to run database administration SQL statements such as SHOW, SET, GRANT, etc.

<img src="https://mintcdn.com/dbx/yhR4_AKNF_MEUOA1/content/docs/sql-editor/admin-mode.webp?fit=max&auto=format&n=yhR4_AKNF_MEUOA1&q=85&s=252505cce23232066e74a1f6fea0e481" alt="Admin Mode" width="1275" height="368" data-path="content/docs/sql-editor/admin-mode.webp" />

In Admin Mode, click the **Clear screen** button or use its keyboard shortcut <kbd>⇧ + ⌥ + C</kbd> to clear the screen. You can also press <kbd>⌘ + Up / Down</kbd> or <kbd>Ctrl + Up / Down</kbd> to explore history statements backward or forward.
