Skip to content

Commit bef1809

Browse files
committed
Add Check and Repair documentation
Signed-off-by: Eric Nemchik <[email protected]>
1 parent dcc47ba commit bef1809

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,19 @@ When this container initializes, if `MYSQL_ROOT_PASSWORD` is set an upgrade chec
110110
mariadb-upgrade -u root -p<PASSWORD>
111111
```
112112

113+
### Check and Repair
114+
115+
If user databases are not in a healthy state (sometimes caused by a failed upgrade), it may be remedied by running:
116+
117+
```
118+
mariadb-check -u root -p<PASSWORD> -c -A # check all databases for errors
119+
mariadb-check -u root -p<PASSWORD> -r -A # repair all databases
120+
mariadb-check -u root -p<PASSWORD> -a -A # analyze all databases
121+
mariadb-check -u root -p<PASSWORD> -o -A # optimize all databases
122+
```
123+
124+
After running the above commands, you may need to run the upgrade command again.
125+
113126
## Usage
114127

115128
Here are some example snippets to help you get started creating a container.

readme-vars.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,19 @@ app_setup_block: |
101101
mariadb-upgrade -u root -p<PASSWORD>
102102
```
103103
104+
### Check and Repair
105+
106+
If user databases are not in a healthy state (sometimes caused by a failed upgrade), it may be remedied by running:
107+
108+
```
109+
mariadb-check -u root -p<PASSWORD> -c -A # check all databases for errors
110+
mariadb-check -u root -p<PASSWORD> -r -A # repair all databases
111+
mariadb-check -u root -p<PASSWORD> -a -A # analyze all databases
112+
mariadb-check -u root -p<PASSWORD> -o -A # optimize all databases
113+
```
114+
115+
After running the above commands, you may need to run the upgrade command again.
116+
104117
# changelog
105118
changelogs:
106119
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }

0 commit comments

Comments
 (0)