INSTALL MYSQL ON UBUNTU 18.04

 



MySQL uses relational databases (basically tabular data). It is really easy to store, organize and access data this way. For managing data, SQL (Structured Query Language) is used.

In this article I’ll show you how to install and use MySQL 8.0 in Ubuntu 18.04. Let’s get to it!

  1. Install MySQL from the Ubuntu repositories. Very basic, not the latest version (5.7)
  2. Install MySQL using the official repository. There is a bigger step that you’ll have to add to the process, but nothing to worry about. Also, you’ll have the latest version (8.0)

When needed, I’ll provide screenshots to guide you. For most of this guide, I’ll be entering commands in the terminal (default hotkey: CTRL+ALT+T)

make sure your repositories are updated by entering:

sudo apt update

Now, to install MySQL 5.7, simply type:

sudo apt install mysql-server -y

That’s it! Simple and efficient