Pages

Banner1

Wednesday 31 May 2017

How To Install MySQL in Linux

Install MySQL:

1. To install MySQL, open terminal and type below 1st command.
2. Once it is done installing, you can set a root MySQL password using 2nd command.
3. Once it installs, you can start MySQL running using 3rd command.
4. Now run 4th command to ensure run service from boot.

1. #sudo yum install mysqld
2. #sudo /usr/bin/mysql_secure_installation
The prompt will ask you for your current root password. Since you just installed MySQL, you most likely won’t have one, so leave it blank by pressing enter. Then the prompt will ask you if you want to set a root password. Go ahead and choose Y and follow the instructions. It’s easiest just to say Yes to all the options. At the end, MySQL will reload and implement the new changes.

3. #sudo service mysqld start
4. #sudo chkconfig mysqld on

→ Learn More: How To Install Apache (httpd) in Linux
→ Learn More: How To Install and phpMyAdmin in Linux



No comments:

Post a Comment

Exciting Offer