How To Install MySQL on Ubuntu 18.04?

MySQL is an open-source database management system, commonly installed as part of the popular LAMP(Linux, Apache, MySQL, PHP/Python/Perl) stack. It uses a relational database and SQL (Structured Query Language) to manage its data.

The short version of the installation is simple: update your package index, install the mysql-serverpackage, and then run the included security script.

sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation