I'm not 100% sure, but may be a good approach.
One way is to use the full-text functionality of MySQL.
Another way using LIKE in your SELECT -query is exactly the same.
SELECT * FROM users WHERE username LIKE "mohankrishna";
But I am not very familiar with this, and I do not know how tolerant MySQL should give you an accurate record.
source share