'Ubuntu PHP 7.1 Connecting to MySQL 5.6 with Compression Stocked

I cannot figure out why when I tried to connect API from my Ubuntu 20, with PHP 7.1 with the connection syntax that connect to MySQL server Version 5.6;

$mysqli = mysqli_init();
                if (!$mysqli->real_connect('192.168.**.**', '****', '***', 'db_name', 3306, NULL, MYSQLI_CLIENT_COMPRESS)) {
                    die('Connect Error (' . mysqli_connect_errno() . ') '
                        . mysqli_connect_error());
                }

Without the MYSQLI_CLIENT_COMPRESS it is okay but when I have this compression it stocks, or timeout.

This is the MySQLi Config MySQLi Version



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source