mysqli_query(): MySQL server has gone away for Curl Request

Kindly refer to this ticket.
https://wordpress.org/support/topic/warning-mysqli_query-mysql-server-has-gone-away/#topic-9911138-replies

Its related to mysql memory exhausted, due to large db size or might be low packet size memory.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)