urre/wordpress-nginx-docker-compose

wp-cli db commands not working, is it missing mysql-client?

aaronjpitts opened this issue · 2 comments

When I log in to the container and run wp db reset --yes --allow-root it gives the error /usr/bin/env: 'mysql': No such file or directory, Is it missing the mysql-client?

Thanks in advance for your answer.

Got it working by running apt-get update && apt-get dist-upgrade && apt-get install default-mysql-client on the container. Is there a better way to have this installed as standard?

Thanks :)

urre commented

@aaronjpitts yes, thanks for noticing :) Fixed now