<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Since this morning (with the new Gambas 3.13 and the update of the MysqlClient from Linuxmint repositories in Abr, 29) I can't connect with our MySql server.</div><div>This is the code (more of less) we use until now:</div><div>with myHcon<br></div><div>    .Type = "mysql"<br>    .host = myhost<br>    .port = 3306<br>    .User = "myuser"<br>    .Password = "mypassword" <br>    .Name = "mydatabasename"<br>    Try .Open<br>    If Error Then Print Error.Text<br>    If Not .opened Then <br>        Message.Error("No Connection")<br>        Return False<br>    Endif</div><div>This code doesn't work and generates this error:</div><div>"Cannot open database: Can't connect to MySQL server on '<ServerIPhere>' (4)"</div><div><br></div><div><b>BUT </b>If wait one second and try again then all works fine:</div><div><div>with myHcon<br></div><div>    .Type = "mysql"<br>    .host = myhost<br>    .port = 3306<br>    .User = "myuser"<br>    .Password = "mypassword" <br>    .Name = "mydatabasename"<br>    Try .Open</div><div>    If Error Then Print Error.Text</div><div>    If Not .opened Then </div><div>        wait 1</div><div>        Try .Open</div><div>         if not .opened then <br></div><div>               Message.Error("No Connection")<br>               Return False</div><div>         endif<br></div><div>    Endif</div><div>This code shows the error and connect fine the second time...</div><div><br></div><div>In error log of mysql server appears this message each time the connection is failure:</div><div>"2019-04-30T18:43:07.166136Z 11664 [Note] Got an error reading communication packets"<br><br></div><div>I don't understand nothing.</div><div><br></div><div>Best Regards<br></div></div></div></div></div></div>