Following the instructions here:

https://medium.com/@tatemz/local-wordpress-development-with-docker-3-easy-steps-a7c375366b9

I was able to get a local WordPress install up and running very quickly and it’s been wonderful.

Today when I start it up, there is a connection refusal that looks like it would be very simple to address if I could figure out two things from the following error messages:

MySQL Connection Error: (1130) Host '172.19.0.3' is not allowed to connect to this MariaDB server
Warning: mysqli::mysqli(): (HY000/1130): Host '172.19.0.3' is not allowed to connect to this MariaDB server in - on line 22

The 2 things I need to figure out are:

  1. “line 22” in what file? Is this a config file? What is the file name?
  2. On a Mac/Docker deployment like this, what is the path to this file?

The docker container directory only contains a WordPress install directory. There doesn’t appear to be anything related to MySQL/MariaDB in that directory. I’ve read through a lot of documentation on Mac deployments of MySQL and where the config files would live, but being in a Docker container this is a different beast. The documentation I have found does not apply.

I have looked into SSH’ing into a Docker container (I’m a baby at Docker) but I don’t even know if that’s a thing you do.

Read more here: MySQL Connection Error: (1130) Host ‘xxx.xxx.xxx.xxx’ is not allowed to connect to this MariaDB server


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: