Installing MySQL on Ubuntu Server

Author: Al-mamun Sarkar Date: 2020-04-14 09:22:04

Installing MySQL on Ubuntu Server. The following commands show how to install MariaDB or MySql on your Ubuntu 18.04 server.

 

Switch to Sudo User:

sudo su

 

Update Ubuntu Packages:

apt update

 

Install MariaDB:

apt install mariadb-server mariadb-client

 

Check MariaDB server:

systemctl status mysqld.service

 

Checking Mysql Version:

mysql --version