Replace FindMYSQL.cmake with another script which has a compatible license

fixes #6493