Try to connect to mysql some times before giving up
Removed useless test