Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Do you have to restart MySQL to edit changes? Or can you edit them on the fly and restart MySQL or make the changes inside MySQL?

This server runs 100s of website that are active and I don't really want to bring mysql down for a restart unless I have to.

share|improve this question
I do not understand.. Why had this question receive a downvote? –  rahmanisback Jun 12 at 13:25

1 Answer 1

up vote 0 down vote accepted

Stop the server, make the changes in my.cnf and then start the server. It will reflect the changes properly.
If the variable is global then you can change it inside MySQL,
but it will retain the new value until next server restart only.
And if it's a session variable it will retain the new value for that particular session only.
For example:
mysql> set global max_connections=200;

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.