Installation of MySQL Server 5.6 on Ubuntu

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).In this article I will show you the installation of MySQL server 5.6 on Ubuntu.

 

Below are the steps to install MySQL Server on Ubuntu.

 

Add MySQL Repository

 

Install MySQL Server package using apt-get

During Installation it will ask you to provide root user password of MySQL.

set mysql password

– Check Installed Version of MySQL

– Login into MySQL Server using command line

After MySQL server installation finish, it wil 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.

If you want to install MySQL server 5.7 on Ubuntu the refer the link Installation of MySQL Server 5.7 on Ubuntu 14.04.

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