Skip to content

Commit a2fe5f1

Browse files
authored
Add upgrade instructions for MariaDB
Added instructions for upgrading MariaDB to version 11.8 LTS.
1 parent 2925f60 commit a2fe5f1

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

docs/book/v2/faq.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,45 @@ Being installed as a system package, it can be updated using the command which u
166166
```shell
167167
sudo dnf upgrade -y
168168
```
169+
## How do I upgrade MariaDB ?
170+
171+
By default, MariaDB is at version 11.4 LTS.
172+
In case you want to upgrade to a different version, for instance [11.8 LTS](https://mariadb.org/11-8-is-lts/), use the below steps:
173+
174+
- Open the MariaDB.repo file in any text editor.
175+
```shell
176+
sudo nano /etc/yum.repos.d/MariaDB.repo
177+
```
178+
- Modify the **baseurl** variable to match the desired version, for instance `11.8` instead of `11.4`.
179+
- Clean dnf cache
180+
```shell
181+
sudo dnf clean all
182+
```
183+
184+
- Stop MariaDB
185+
```shell
186+
sudo systemctl stop mariadb
187+
```
188+
189+
- Upgrade MariaDB
190+
```shell
191+
sudo dnf update -y
192+
```
193+
194+
- Start MariaDB
195+
```shell
196+
sudo systemctl start mariadb
197+
```
198+
199+
- Upgrade databases
200+
```shell
201+
sudo mariadb-upgrade -uroot -p
202+
```
203+
204+
- Restart MariaDB
205+
```shell
206+
sudo systemctl restart mariadb
207+
```
169208

170209
## How do I create command aliases?
171210

0 commit comments

Comments
 (0)