[Warning] mysqli::real_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known

GET /plan-for-abel-tasman/abel-tasman-information/abel-tasman-national-park-beaches/

Line 113 in /home/wilsons/public_html/vendor/silverstripe/framework/src/ORM/Connect/MySQLiConnector.php

Source

104                     : self::config()->get('ssl_cipher_default')
105             );
106         }
107 
108         $this->dbConn->real_connect(
109             $parameters['server'],
110             $parameters['username'],
111             $parameters['password'],
112             $selectedDB,
113             !empty($parameters['port']) ? $parameters['port'] : ini_get("mysqli.default_port")
114         );
115 
116         if ($this->dbConn->connect_error) {
117             $this->databaseError("Couldn't connect to MySQL database | " . $this->dbConn->connect_error);
118         }
119 

Trace

GET /plan-for-abel-tasman/abel-tasman-information/abel-tasman-national-park-beaches/

[Emergency] Uncaught SilverStripe\ORM\Connect\DatabaseException: Couldn't connect to MySQL database | php_network_getaddresses: getaddrinfo failed: Name or service not known

GET /plan-for-abel-tasman/abel-tasman-information/abel-tasman-national-park-beaches/

Line 64 in /home/wilsons/public_html/vendor/silverstripe/framework/src/ORM/Connect/DBConnector.php

Source

55         if (!empty($sql)) {
56             $formatter = new SQLFormatter();
57             $formattedSQL = $formatter->formatPlain($sql);
58             $msg = "Couldn't run query:\n\n{$formattedSQL}\n\n{$msg}";
59         }
60 
61         if ($errorLevel === E_USER_ERROR) {
62             // Treating errors as exceptions better allows for responding to errors
63             // in code, such as credential checking during installation
64             throw new DatabaseException($msg, 0, null, $sql, $parameters);
65         } else {
66             user_error($msg, $errorLevel);
67         }
68     }
69 
70     /**

Trace