There are three machines on the same network. On one Mysql is spinning, the other two act as a client. At the same time, on one client machine, the connection is established in fractions of a second, for the second it connects for a long time then quickly. Checked with the command: telnet database.server 3306
The differences between the two client machines are that on one stands Ubuntu 14.04 on the other Ubuntu 16.04
The question is where to dig?