Trying to connect to the WP database via mysqli, e.g. $connection = mysqli_connect($host_name, $username, $password, $database);
All I get is these errors:
Error: Unable to connect to MySQL.
Debugging errno: 2002
Debugging error: No such file or directory