You can see more details and the latest version of the tool here: http://dev.mysql.com/downloads/repo/apt/
wget https://dev.mysql.com/get/mysql-apt-config_0.8.9-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.9-1_all.deb
You will be asked to select product and version that you want to install.
In the first step, select Server and next select either mysql-5.6 or mysql-5.7. Then click Apply.
sudo apt update
sudo apt install mysql-community-server