Ubuntu Tutorial-How to install MySQL Server on Ubuntu 15.10

MySQL Server is a free, popular SQL Database server for many systems including Linux. Here I want to show you how to install and manage MySQL Server on Ubuntu 14.04, Ubuntu 15.04 and Ubuntu 15.10. Its not hard to install MySQL on Ubuntu but it would be good if you know a bit about command line.

MySQL.svg

Steps to install MySQL Server on Ubuntu

A. Update System

It is important to have most recent packages and software installed on your Ubuntu system. These command will help you to complete this task.

sudo apt-get update
sudo apt-get upgrade

B. Install MySQL Server

Use this command to install MySQL Server

sudo apt-get install mysql-server

Output:

dhani@ubuntu-gnome:~$ sudo apt-get install mysql-server
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-server-5.6
mysql-server-core-5.6
Suggested packages:
libmldbm-perl libnet-daemon-perl libsql-statement-perl
libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-server
mysql-server-5.6 mysql-server-core-5.6
0 upgraded, 10 newly installed, 0 to remove and 253 not upgraded.
Need to get 20,9 MB of archives.
After this operation, 151 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Type Y and press Enter to continue

During installation you will be asked to enter MySQL Password for root user

install mysql on ubuntu 1In a moment, MySQL Server installation should be completed. You can now access and use MySQL locally. By default, MySQL Server is not configured for remote access. In the next tutorial, I will show you how to make MySQL Server accessible from the network.

Admin

Leave a Reply

Your email address will not be published. Required fields are marked *