开发者

updating a mysql config variable (ft_min_word_len)?

开发者 https://www.devze.com 2023-02-04 17:51 出处:网络
I need to set ft_min_word_len = 3. I never restarted my mysql server on my production server. So I fear this moment :).

I need to set ft_min_word_len = 3. I never restarted my mysql server on my production server. So I fear this moment :).

Are there any way to set ft_min_word_len = 3 without restarting mysql? And if i must restart it, can you tell me the exact step I have to do?

I am on Devian GNU/Linux MySQL: 5.0.32

(where I can find where is the mysql config开发者_运维百科uration file?)

Thanks a lot


No, I'm afraid you need to restart MySQL for it to accept the change. That said, there's nothing to be afraid of, as this won't affect any data. (If you're feeling paranoid, simply carry out the change/restart at an off-peak time, when site traffic is low.)

In terms of the configuration file, I think it lives in /etc/mysql/my.cnf on Debian. (If not, check /etc/my.cnf.)

To restart the service, simply issue a "/etc/init.d/mysql restart" command and all should be well.

0

精彩评论

暂无评论...
验证码 换一张
取 消