fbpx

To get information on Mysql, please refer this.

As for now lets get on with our installation, and usual you have the option to follow along the video below, or read the steps.

Step 1 – Install MySQL using yum on CentOS. Issue following command:

1
yum install mysql-server

1

It will ask for confirmation, simply type Y then hit Enter again:

Step 2 – Alright! You’ve installed MySQL on your server. It’s time to start MySQL main service. Issue this command

1
service mysqld start

As usual, it should display the OK message indicating everything’s fine:

1-1

Step 3Setup MySQL root password. Your server has “root” user but MySQL also has its own. It means your server’s root password is not similar as root password for MySQL. Go ahead set a root MySQL password by issuing this command:

1
/usr/bin/mysql_secure_installation

It will then ask you to enter current password. As you never set it up previously, so simple hit Enter (because currently there is no password).

3

Next, you’ll be asked: Set root password? [Y/n]. Type Y and hit Enter then type in your new password twice

Yet, you’ll also be asked for several questions. Simply answer with Y to move on.

 That’s it.
Categories: Tutorials

1 Comment

Bill · September 11, 2016 at 5:12 AM

Hi there! This article couldn’t be written any better!
Reading through this article reminds me of my previous roommate!
He always kept talking about this. I’ll forward this article to him.
Fairly certain he will have a great read.
Many thanks for sharing!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.