1 / 3
amogtech
2 / 3
mhk
3 / 3
ccg


The followings are the commands to install MySql in Ubuntu.

1. Open new terminal and type sudo su in it.

2. Type apt-get install mysql-server php7.0-mysql and press Enter.

3. Type systemctl status mysql and press Enter. (Checking MySql service working or not)

4. Type systemctl enabel mysql and press Enter. (Enabling MySql service)

5. Type systemctl start mysql and press Enter. (Starting MySql Service)

6. Type mysql_secure_installation and press Enter. (Give Username, Password and follow the procedure)

7. Type mysql -u root -p and press Enter.(Log In MySql)


Share On:

What do you think?

Send us feedback!