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 launch -p(or click the link in
ddev describeto use PhpMyAdmin
- Use the mysql client in either web container or db container
You can export the database to text format with
ddev export-dbor make a binary snapshot with
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!