r/PHPhelp • • Dec 23 '24

PhpMyAdmin problem

I DID IT!

I successfully installed mySQL and phpmyadmin. But during authorization I get an error HY000/2002: php_network_getaddresses: getaddrinfo for MySQL -8.0.40 failed: unknown host. I tried all methods: changed config.ing.php please help

0 Upvotes

27 comments sorted by

View all comments

Show parent comment

2

u/allen_jb Dec 24 '24

The error message given is specifically a DNS resolution / incorrect hostname issue.

If the problem were a firewall / NAT / MySQL not running on the port, you would either get a "cannot connect" or "timeout" error (depending on whether connection attempts are actively rejected, or dropped)