Unable to connect to database during installation

@swanand0401

The address or port blocked in your network.
Look at the information from link @pgr wrote about

"

  • It is also possible to see this error if host name lookups fail (for example, if the DNS server on which your server or network relies goes down). This is because MySQL is dependent on the host system for name resolution, but has no way of knowing whether it is working—from MySQL’s point of view the problem is indistinguishable from any other network timeout.
    You may also see the MySQL server has gone away error if MySQL is started with the skip_networking system variable enabled.
    Another networking issue that can cause this error occurs if the MySQL port (default 3306) is blocked by your firewall, thus preventing any connections at all to the MySQL server.

"