Because MySQL is such a popular database engine, installing it is super easy:
sudo apt install mysql-server
Given some time, you'll eventually have MySQL Server installed and running on your server. Using
lsof we are able to confirm we have
TCP/3306 open on our system and waiting for inbound network connections:
1 2 3
You can make the service starts on reboot by enabling it in systemd:
1 2 3
And that's all there is to installing MySQL Server on a Ubuntu Server 20.04 system.
Now we will look at the configuration file for MySQL Server and check out some tools for optimising the whole server.