I discovered the following in my error logs multiple times:
PHP Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in qa-include/qa-db.php on line 66
$db = new mysqli(QA_FINAL_MYSQL_HOSTNAME, QA_FINAL_MYSQL_USERNAME, QA_FINAL_MYSQL_PASSWORD, QA_FINAL_MYSQL_DATABASE);
I once got:
PHP Question2Answer MySQL connect error 2002: php_network_getaddresses: getaddrinfo failed: Name or service not known
Could it be that the DB was down? Or is it something else?
Research on the net brought up:
This page suggests it could be something at the server level, which you'd need to check with your host about.
Otherwise yes it must be some issue with the MySQL server not working sometimes.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.
April 20, 2021: Q2A 1.8.6 released!