I know how to properly change the MySQL ft_min_word_len configuration variable, but what I can’t seem to easily find in the PHP & MySQL documentation (maybe I’m not using correct search terms) is if there’s a way to programatically get the value of ft_min_word_len using PHP. My search engine should throw an error if the query contains search terms shorter than ft_min_word_len and it’d be helpful if it could do it automatically without me remembering to set a variable.
I know how to properly change the MySQL ft_min_word_len configuration variable, but what I
Share
You can use show variables and retrieve its value from php.
From php
Just for your information you can get this value even from the information_schema