Skip to main content
I've added the tag ddev as requested by the ddev maintainers for better accessibility of ddev related questions as well as for answering them
Link
Source Link

Database access using docker

I installed a new wordpress project using docker's guide:

mkdir my-wordpress-site
cd my-wordpress-site
ddev config --project-type=php
ddev composer create wordpress/skeleton --no-interaction --prefer-dist
ddev config --docroot=wp --project-type=wordpress
ddev restart

All done and I ran the front-end configuration.

I am used to running things in windows(xampp) and heard of MAMP for mac. but now I need to use docker and have no clue of how to go about things.

Question is: Is there a way I can access my database using Docker? ssh or anything?