WordPress (Host)
installed in /var/www/html
I have confirmed the DB credentials are correct in wp-config.php
MySQL (Host)
Listening on 127.0.0.1:3306
I know the php-fpm container is working because when I place an info.php in the document root, the browser displays it correctly, but when I try to run WordPress through the browser I get:
“Error establishing a database connection”
Has any anyone experienced this before? I have a belief it may be some configuration I’m missing with MySQL. Let me know if you guys have any idea’s of what the issue may be.
this means that mysql will ONLY accept requests from the adapter where 127.0.0.1 exists.
a container has its OWN ip address, and would NOT BE 127.0.0.1