Install MariaDB 10.4, 10.5, 10.6, 10.7 on Ubuntu 22.04

[ad_1]

To install MariaDB 10.3, 10.4, 10.5, 10.6, 10.7, 10.10, 10.11, You just run a single command sudo apt install mariadb-server on a Linux Ubuntu 22.04 terminal window or command line and press Enter, this will install it.

Here are some steps to install MariaDB 10.3, 10.4, 10.5, 10.6, 10.7, …. 10.10, 10.11 in Linux ubuntu 22.04:

  • Step 1 – Update System Dependencies
  • Step 2 – Install MariaDB
  • Step 3 – Configure MariaDB
  • Step 4 – Test Installation Of MariaDB
  • Step 5 – Uninstall MariaDB 10.x(3,4,5,6,10,11) in Ubuntu 20.0 | 22.04

Step 1 – Update System Packages

Press ctrl+alt+t on the keyboard to start a terminal window, and type sudo apt update to upgrade system packages:

sudo apt update
sudo apt upgrade

Step 2 – Install MariaDB 10.x(3,4,5,6,10,11) on Ubuntu 22.04

Use the command sudo apt install mariadb-server mariadb-client on a terminal window, this installs MariaDB Server and MariaDB Client on Linux ubuntu 22.04:

sudo apt install mariadb-server mariadb-client

To verify that the MariaDB server is running, type sudo service mariadb status command on terminal window, it will show you the status of mariadb server:

sudo service mariadb status

Step 3 – Configure MariaDB

To secure MariaDB, type the sudo mysql_secure_installation command in the terminal window and press Enter,

sudo mysql_secure_installation

Then prompt will be open; is as follow:

Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.

You already have your root account protected, so you can safely answer 'n'.

Switch to unix_socket authentication [Y/n]

On the next prompt, you will be asked to set a password for the MariaDB root user.

If you set up the validate password plugin, the script will show you the strength of your new password. Type y to confirm the password.

Next, you’ll be asked to remove the anonymous user, restrict root user access to the local machine, remove the test database, and reload privilege tables. You should answer y to all questions.

Step 4 – Test Installation Of MariaDB

To run the following command on command line to check the status of mariaDB:

sudo mysqladmin version

Uninstall MariaDB 10.x(3,4,5,6,10,11) on Ubuntu 22.04

Sometimes, you may need to remove or uninstall MariaDB in ubuntu, just simply run sudo apt-get purge mariadb-server command on terminal window to completely remove or uninstall the MariaDB on ubuntu:

sudo apt-get purge mariadb-server 

Conclusion

Through this tutorial, we have learned how to install, configure and uninstall MariaDB on Linux ubuntu 22.04.

Recommended Linux Ubuntu Tutorials

[ad_2]

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

GSTIN is 03EGRPS4248R1ZD.

Contact
Jassweb, Rai Chak, Punjab, India. 143518
Item added to cart.
0 items - 0.00