Copy the following commands in terminal and run them: wget https://dev.mysql.com/get/mysql-apt-config_0.8.1-1_all.deb sudo dpkg -i mysql-apt-config_0.8.1-1_all.deb You'll see a prompt that asks you which MySQL product you want to configure. The MySQL Server option, which is highlighted, should say mysql-5.7. If it doesn't, press ENTER , then scroll down to mysql-5.7 using the arrow keys, and press ENTER again,now scroll down and select OK and ENTER sudo apt-get update sudo apt-get install mysql-server sudo mysql_upgrade -u root -p sudo service mysql restart
Code at your best..!