Level 2
I solved it by adding
sudo echo -e "[mysqld]\nft-min-word-len = 3" > /etc/mysql/conf.d/my.cnf
to install.sh. That will override the original my.cnf in /etc/mysql/
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi!
I working on application build on LIKE-searchs and want to change the variable "ft_min_word_len" to 3 instead of the default value of 4 in MySQL. I know I can just open the my.cnf file and add it there but I want to do from the install.sh-file for Homestead so the other developers in the team get the exact same environment.
I have tried to add sudo mysqld --ft_min_word_len=3
with no success.
So if anyone have any tip how to do it I'm more than happy for it.
I solved it by adding
sudo echo -e "[mysqld]\nft-min-word-len = 3" > /etc/mysql/conf.d/my.cnf
to install.sh. That will override the original my.cnf in /etc/mysql/
Please or to participate in this conversation.