How do you refresh the MySQL configuration file without restarting?

后端 未结 4 1069
时光说笑
时光说笑 2020-12-25 11:01

Apache has such a feature, what about MySQL?

Does one exist?

4条回答
  •  难免孤独
    2020-12-25 11:22

    You were so close! The kill -HUP method wasn't working for me either.

    You were calling:

    select @@global.max_connections;
    

    All you needed was to set instead of select:

    set @@global.max_connections = 400;
    

    See:

    http://www.netadmintools.com/art573.html

    http://www.electrictoolbox.com/update-max-connections-mysql/

提交回复
热议问题