Skip to content

Commit

Permalink
Use SELECT
Browse files Browse the repository at this point in the history
  • Loading branch information
masa213f committed Aug 5, 2024
1 parent 86752db commit ce6332b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -822,12 +822,12 @@ $ kubectl moco mysql -u moco-admin <CLSUTER_NAME> -- -e "SET GLOBAL super_read_o
You can check whether the cluster is read-only with the following command.

```console
$ kubectl moco mysql -it <CLSUTER_NAME> -- -e "SHOW GLOBAL VARIABLES like 'super_read_only'"
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| super_read_only | ON |
+-----------------+-------+
$ kubectl moco mysql -it <CLSUTER_NAME> -- -e "SELECT @@super_read_only"
+-------------------+
| @@super_read_only |
+-------------------+
| 1 |
+-------------------+
```

If you want to leave read-only mode, restart clustering as follows. Then, MOCO will make the cluster writable.
Expand Down

0 comments on commit ce6332b

Please sign in to comment.