How to install MySQL server on Ubuntu

This article will help you for installing MySQL on Ubuntu and Linux systems.Use following installation steps. Install process will prompt you for input password twice. This will be root account password for your MySQL.

I assume that you have a working Ubuntu server already and you knew how to use Putty. You may firstly install Apache and PHP5 and firewall on your server you can also do that later after installing MySQL. That’s your choice.

Also, do not forget to follow basic server setup for Ubuntu.

Use the following commands to install or upgrade MySQL 5.7 on your Ubuntu or Linux systems.

apt-get install software-properties-common
add-apt-repository -y ppa:ondrej/mysql-5.7
apt-get update
apt-get install mysql-server