Connection to mysql server fails