How to install MySQL on Linux

In this article, we are going to install MySQL on Ubuntu Linux Distribution.

1) Log on to Ubuntu Server and open Terminal

2) Type the following command in terminal

sudo apt-get instal mysql-server

How to install MySQL on Linux

Note: This requires internet connection.

3) It will ask confirmation. Type Y

4) Provide the password for user root. Default user is root.

5 Re-type the same password.

6. Process completion details.

7. Check status of mysql server by running ‘sudo service mysql status’ in shell.

root@ubuntu:/# sudo service mysql status
● mysql.service – MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2017-06-27 11:01:55 PDT; 9h ago
Main PID: 7649 (mysqld)
CGroup: /system.slice/mysql.service
└─7649 /usr/sbin/mysqld

Jun 27 11:01:54 ubuntu systemd[1]: Starting MySQL Community Server…
Jun 27 11:01:55 ubuntu systemd[1]: Started MySQL Community Server.

CheapSexCams
Responses are currently closed, but you can trackback from your own site.

Comments are closed.

Powered by k2schools
%d bloggers like this: