Levenshtein distance on MariaDB
There is no single officially approved or universally accepted implementation as of writing this (May 2019). However, as suggested by Rick James in a comment,


  Search for mysql Levenshtein; there are several implementations out there. I don't know if they are all the same. A UDF implementation is likely to be faster than a Stored Procedure.