MySQL Connection Failing from within the server

Website URL

https://socialbeers.infinityfreeapp.com

Error Message

Warning: mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo for sql113.infinityfree.com failed: Name or service not known in /home/vol3_4/infinityfree.com/if0_40554621/htdocs/wordpress/wp-includes/class-wpdb.php on line 1988

php_network_getaddresses: getaddrinfo for sql113.infinityfree.com failed: Name or service not known

Other Information

This is failing on the hosted files, no on a remote connection attempt.

I checked your wp-config.php file, and in it, I see you have configured the following:

/** nome do host do MySQL */
define('DB_HOST', ' sql113.infinityfree.com:3306');

This is not correct. The DB_HOST setting should only contain the hostname. No ports, and very importantly, no additional spaces. That space at the start is most likely the cause for the error.

Thanks. that did it… appreciate the help!