Answer the question
In order to leave comments, you need to log in
How to make MySQL bash available in Laradock (docker-compose)?
If someone shares a suitable solution, I will be glad.
It is necessary to import a large dump - it does not climb through PhpMyAdmin (it says that there is not enough memory).
When I enter the container,
docker-compose up -d nginx mysql phpmyadmin
it does not find mysql commands there
which mysql
either.
If I do this:
then it logs into mysql bash but does not see the dump file (I have no idea why, how external paths correspond to internal ones)
Google told me about
what I did (even reinstalled Laradock and deleted the old database in ~/.laradock ) ...
In general, HOW? ))
How can I import a large database into mysql in Laradock?
docker-compose exec mysql mysql -udefault -psecret
WORKSPACE_INSTALL_MYSQL_CLIENT=true
Answer the question
In order to leave comments, you need to log in
Code I enter the container:This is a command to start containers, it does not allow you to enter anywhere. Accordingly,
docker-compose up -d nginx mysql phpmyadmin
which mysql
you, apparently, are executing on the host, and not in the container.can't see the dump fileAnd where does he lie? And where are you looking for it?
how do external paths relate to internal ones?This is how they relate: https://github.com/laradock/laradock/blob/27f50abe... .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question