Centos: Init.d, turn mysqld off and stop it from initializing at startup

I have a docker container running on this machine that requires alot of resources. I wanted to see if there were any unnecessary processes that were running that didn’t need to be on. Mysql was one of them.

sudo killall mysqld; sudo killall mysqld_safe;
chkconfig

To turn off all levels:

chkconfig mysqld off

We good

Just in case you turn it off on the wrong machine like me, turn it back on using this command

chkconfig --level 2345 mysqld on

Leave a Reply

Your email address will not be published.