akiya
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: wp-env can’t connect to databaseI found another way.
How to Fix MariaDB Error 1130 with wp-env and Docker – Greys
https://greys.co/how-to-fix-mariadb-error-1130-wp-env-docker/- Find container name by
docker ps.
Container name is about 30 alphanumeric characters like ‘cf510f85552bd2693a6907b36da3b3a3’ - Move folder
cd ~/.wp-env/<container name>/. - Execute docker comand,
docker-compose down -v docker-compose up- Move your project folder
cd ~/my_projectand runwp-env start
Forum: Developing with WordPress
In reply to: wp-env can’t connect to databaseMy coworker had similar problem.
✖ Error while running docker-compose command.
Creating 089135d6fcdff73270753921a88fbffc_cli_run …
Creating 089135d6fcdff73270753921a88fbffc_cli_run … done
mysqlcheck: Got error: 1045: Access denied for user ‘root’@’172.18.0.6’ (using password: NO) when trying to connect
2If there were
wp-config.phpin folder that executewp-env start, solved by remove wp-config.php and runwp-env start.And, If wp-config.php existed
~/.wp-env/<containerId>/<execute wp-env folder>/, remove that wp-config.php too and regenerate bywp-env start.Regenerating wp-config.php solved my coworker’s error.
Perhaps, this problem occur after update wp-env v3 or lower to v4.
- Find container name by