Want to change my.ini file in sql for any session

I am using MATCH (col1, col2) AGAINST ("text") query to find things fast. But because of his limitation of words, a complete stop. I need to modify my.ini file. I need to add this piece of code to my.ini file.

[mysqld]
ft_min_word_len = "1"
ft_stopword_file =""

I want to add commands only for my application. Since this can happen, my.ini will be used by many other applications. I need some kind of php script with a specific session.

+3
source share
1 answer

You will not be able to set this dynamically at run time, as the full text settings can be changed before starting the server.

, , , , .

mysqld --ft_min_word_len=1 --ft_stopword_file=''

, fulltext , .

+2

Source: https://habr.com/ru/post/1778682/


All Articles