You can use REGEXP to match any of the words in the search bar:
select * from tbl where title REGEXP CONCAT('[[:<:]](', REPLACE('Acme burger', ' ', '|'), ')[[:>:]]')
Please note that this will not be very effective. See here here .
If you need to match each word in your string, you can use this query:
select * from tbl where title REGEXP CONCAT('[[:<:]]', REPLACE('Acme burger', ' ', '[[:>:]].*[[:<:]]'), '[[:>:]]')
Fiddle is here . But the words must be in the correct order (for example, "Acme burger" will match, "Acme burger" will not). There REGEXP matches every word in any order, but it is not supported by MySql unless you install UDF that supports Perl regexp.
source share