Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker bash: mysql: command not found

After getting the docker pull, if you proceed as follows, you will get a statement that it cannot be found.

I want to solve this problem.


docker pull mariadb
.
.
.
docker exec -it mariadb /bin/bash

mysql -u root -p

bash: mysql: command not found

I would like to know why the error occurred.

I want mysql to run.

next syntax

  • Enter Passoword
like image 369
baul kim Avatar asked Jul 11 '26 01:07

baul kim


1 Answers

This docker image has no mysql client installed by default. you can use mariadb -uroot -p

like image 120
RP.S Avatar answered Jul 13 '26 14:07

RP.S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!