db-command icon indicating copy to clipboard operation
db-command copied to clipboard

Wpcli can't access mysql executable between containers

Open AdsonCicilioti opened this issue 3 years ago • 0 comments

Hy guys!

I'm trying run db commands between containers. I have 3 containers (wp / nginx / mysql). All works fine with de wpcli executable placed into wp root.

Commands to manage themes, plugins and the core, woks finely, but when i try to run an db import sql command, i receive the follow error message:

Error: Failed to get current SQL modes. Reason: env: can't execute 'mysql': No such file or directory

Seems because wpcli executable don't see the PATH of mysql container. I know this it is a Docker/Podman/Containers question, but i would like to know if anybody has any experience with this scenario, or can pointing a way to solve this.

AdsonCicilioti avatar May 14 '22 01:05 AdsonCicilioti