Skip to content

Commit cb0d110

Browse files
authored
Merge pull request #106 from dotkernel/add-faq
Add upgrade instructions for MariaDB
2 parents 55cf8d0 + e99e794 commit cb0d110

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

docs/book/v2/faq.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,54 @@ Being installed as a system package, it can be updated using the command which u
167167
sudo dnf upgrade -y
168168
```
169169

170+
## How do I upgrade MariaDB ?
171+
172+
Initially, MariaDB was at version 11.4 LTS.
173+
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:
174+
175+
* Open the MariaDB.repo file in any text editor.
176+
177+
```shell
178+
sudo nano /etc/yum.repos.d/MariaDB.repo
179+
```
180+
181+
* Modify the **baseurl** variable to match the desired version, for instance `11.8` instead of `11.4`.
182+
* Clean dnf cache
183+
184+
```shell
185+
sudo dnf clean all
186+
```
187+
188+
* Stop MariaDB
189+
190+
```shell
191+
sudo systemctl stop mariadb
192+
```
193+
194+
* Upgrade MariaDB
195+
196+
```shell
197+
sudo dnf update -y
198+
```
199+
200+
* Start MariaDB
201+
202+
```shell
203+
sudo systemctl start mariadb
204+
```
205+
206+
* Upgrade databases
207+
208+
```shell
209+
sudo mariadb-upgrade -uroot -p
210+
```
211+
212+
* Restart MariaDB
213+
214+
```shell
215+
sudo systemctl restart mariadb
216+
```
217+
170218
## How do I create command aliases?
171219

172220
From either your terminal or file explorer, navigate to your home directory (`/home/<your-username>/`).

0 commit comments

Comments
 (0)