R
R
Romi2021-11-24 15:20:17
Docker
Romi, 2021-11-24 15:20:17

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

1 answer(s)
A
Alexey Ukolov, 2021-11-24
@romicohen

Code I enter the container:
docker-compose up -d nginx mysql phpmyadmin
This is a command to start containers, it does not allow you to enter anywhere. Accordingly, which mysqlyou, apparently, are executing on the host, and not in the container.
can't see the dump file
And 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... .
Accordingly, put the dump there and look for it there. Well, or add your volume with whatever paths you want (judging by the question, this path does not suit you).
Maybe you already somehow still read the documentation, figure out what you are doing? It’s not the first month that you come here with, in principle, elementary questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question