ktgnair.github.io

Follow me on GitHub

Things in Mysql / Check Port No / Check user privileges / Create new user and give privileges / Reset root password

Differnt Operations that can be done on MySQL to control it.

Start MySQL

INPUT:  
sudo service mysql start  

It will ask you for MySQL password just type it and you are good to go.

Stop MySQL

INPUT:  
sudo service mysql stop     

It will ask you for MySQL password just type it and you are good to go.

Restart MySQL

INPUT:  
sudo service mysql restart  

It will ask you for MySQL password just type it and you are good to go.

Status of MySQL

INPUT:  
sudo service mysql status