MySQL – Start and status in Linux/Unix

To quickly view your status try the following commands

sudo /etc/init.d/mysql status

To stop or start issue one of the following

sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start

Alternatively you can use the following commands
service mysql status
service mysql stop
service mysql start

or if you check the /etc/init.d/ folder and it shows mysqld then issue the following commands

service mysqld status
service mysqld stop
service mysqld start

Tested Platforms
Linux / Centos / Ubuntu
MySQL 5.x

Hits: 55

Leave a Reply