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



How To Install Apache (httpd) in Linux

About LAMP

At First let me tell you about the LAMP. LAMP stack is a group of open source software used to get web servers up and running. LAMP means Linux, Apache, MySQL, and PHP.

Install Apache:
1. To install apache, open terminal and type 1st command.
2. Once it installs, you can start apache running using 2nd command
3. Now run 3rd Command to ensure run service from boot.

1. #sudo yum install httpd
2. #sudo service httpd start
3. #sudo chkconfig httpd on
All Done. To check if Apache is installed, direct your browser to your server’s IP address (eg. http://192.168.0.150). The page should display.


→ Learn More: How To Install MySQL in Linux
→ Learn More: How To Install and phpMyAdmin in Linux




Exciting Offer