This is really easy.
1. Update Ubuntu
An update is always a good thing
sudo apt update
2. Install MySQL
sudo apt install mysql-server
3. Secure it (remove some test users, etc.)
sudo mysql_secure_installation
4. And test it
sudo mysqladmin -p -u root version
That’s it.