Files
cheatsheet-tldr/tldr/doctl-databases-sql-mode
2025-05-12 00:21:19 +00:00

22 lines
747 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# doctl databases sql-mode
> View and configure a MySQL database clusters global SQL modes.
> More information: <https://docs.digitalocean.com/reference/doctl/reference/databases/sql-mode/>.
- Run a `doctl databases sql-mode` command with an access token:
`doctl {{[d|databases]}} {{[sm|sql-mode]}} {{command}} {{[-t|--access-token]}} {{access_token}}`
- Get a MySQL database cluster's SQL modes:
`doctl {{[d|databases]}} {{[sm|sql-mode]}} {{[g|get]}} {{database_id}}`
- Overwrite a MySQL database cluster's SQL modes to the specified modes:
`doctl {{[d|databases]}} {{[sm|sql-mode]}} {{[s|set]}} {{database_id}} {{sql_mode_1 sql_mode_2 ...}}`