Pages

Install MySQL on Ubuntu


Hello,

In this tutorial I will show you steps to install MySql server.


Step 1 : Update your system

Type the command given below to update your system

sudo apt-get update
sudo apt-get upgrade

Step 2: Install MySQL

Type the following command to install MySQL 

sudo apt-get install mysql-server


During installation process you get a window given below that asks you to provide password for your root user. read the instruction carefully. 

mysql-installation
mysql installation window

After installation succesfully type the following command to check weather MySQL  server is ruuning or not.

nmap localhost

Starting Nmap 7.01 ( https://nmap.org ) at 2016-08-26 17:48 IST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000090s latency).
Not shown: 995 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
80/tcp   open  http
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
3306/tcp open  mysql  

by default MySQl uses 3306 port to run the server

if you get the highlited portion it show your mysql server is successfully installed and ready to use.