fixed connection to MySQL 5.6
after program starts it's waiting for a MySQL server in a loop, every
second is trying to connect to local database, maximum is 5 tries