Question:
I have a Laravel project where I have to connect to a MySQL db. I deployed the project with ddev, so I´m using docker. The .env file have this credentials:I really don´t know why this works, so if somebody helps me, I will be thankfull.
Answer:
You can explore your database in so many different ways:ddev mysql
ddev launch -p
(or click the link inddev describe
to use PhpMyAdmin- Use the mysql client in either web container or db container
You can export the database to text format with
ddev export-db
or make a binary snapshot with ddev snapshot
.There’s lots more detail and more options for database browsers at https://ddev.readthedocs.io/en/latest/users/topics/database_management/
If you have better answer, please add a comment about this, thank you!