It looks like you're new here. If you want to get involved, click one of these buttons!
I've filled in the correct dbname, accountname and password and it still hits me with this error.
SQLSTATE[HY000]  php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
found the issue myself. I fixed it by adding port = 3306