• After installing HyperDB some time ago, we began getting the errors mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed. These usually appear during scaling events, but sometimes can actually take our servers offline, creating a domino effect and taking out all of our servers. The only way to get back up is to replace all the application servers. Once that is done, things go back to normal and the servers stop spitting out the errors. (Technically warnings).

    I’ve done plenty of digging and can’t figure out why this would be happening only some of the time. Any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having the same issue.

    PHP message: PHP Warning: mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/mysite/htdocs/wp-content/db.php on line 1269

    It seems db.php is loaded before wp-config.php. So when it gets to the line in db-config.php where it is supposed to add the database (1269), DB_HOST is undefined.
    Maybe db.php should also require wp-config.php, since db-config.php relies on values from it?

    I’ve been experiencing this very problem. Is there a WP patch for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed’ is closed to new replies.