Installation of MySQL Server 5.7 on Ubuntu 14.04

In previous article we have installed MySQL Version 5.6. In this article I will show you the installation of MySQL Server 5.7 on Ubuntu 14.04.

MySQL is very popular database system for a small to medium size web project. It is developed, distributed, and supported by Oracle Corporation. We can run MySQL on various platforms like Window,Linux,Unix. It is full-featured relational database management system (RDBMS).

Below are the steps to install MySQL Server on Ubuntu.

– Download, Install & Update MySQL Server Repository Package for Ubuntu 14.04

You can download the package using below command.

Install Package using dpkg command

Update Repository

– Install MySQL Server package using apt-get

During Installation it will ask Which MySQL product do you wish to configure. Select Server.

configure mysql-apt config

Next It will ask Which Server version do you wish to receive. Select mysql-5.7

Select Version of MySQL in apt-config

In Next Screen click on apply.

click on apply

It will also ask you to provide the password for MySQL root user. Provide your password.

Password for MySQL 5.7

– Check Installed Version of MySQL

– Login into MySQL Server using command line

After MySQL server installation finish, it will start MySQL service automatically.

– MySQL Service related command

Check status of MySQL Service

Stop MySQL Service

Start MySQL Service

Restart MySQL Service

 

Below are the list of user related command for MySQL

– Change the password of MySQL user.

You can change the MySQL password using two ways. One is using mysqladmin command and other way is after login to mysql prompt.

1) Change the password using mysqladmin command

Syntax: mysqladmin -u username -p’oldpassword’ password “newpassword”

Example:

2) Change the password after login to mysql prompt.

Login to MySQL server

Switch to mysql database.

update mysql root user password

Reload the privileges

– Create User

We will create user devops with password Devops@123

Provide access on all the databases to user devops

– View a List of MySQL Users

Thanks for reading. Do let us know if you have any feedback/suggestions.

Let us know if you want us to write us on any particular topic. We will try our best.

posted @ 2017-07-17 17:24  princessd8251  阅读(253)  评论(0)    收藏  举报