docker image is missing mysql command
drush complains that mysql is not found
root@61feaa734df1:~# drush site-install standard -y --site-name="Drupal Guifi" --account-name=admin --account-pass=admin --db-url=mysql://net9:development@172.18.0.2/net9 -vvv
(...)
In SiteInstallCommands.php line 155:
[Exception]
Drush was unable to drop all tables because `mysql` was not found, and therefore Drupal threw an AlreadyInstalledException. Ensure `mysql` is available in your PATH.
proof 2
root@61feaa734df1:~# mysql
bash: mysql: command not found
after installing it, it works
apt update
apt install mariadb-client
and then:
root@61feaa734df1:/# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
and then:
root@61feaa734df1:/# drush site-install standard -y --site-name="Drupal Guifi" --account-name=admin --account-pass=admin --db-url=mysql://net9:development@db/net9 -vvv
(...)
[info] Executing: command -v mysql [0.08 sec, 9.19 MB]
[info] sql:query: SELECT 1; [0.08 sec, 9.23 MB]
[info] Executing: mysql --defaults-file=/tmp/drush_1tVZ84 --database=net9 --host=db --silent -A < /tmp/drush_p3cy32 [0.08 sec, 9.23 MB]
You are about to:
* DROP all tables in your 'net9' database.
// Do you want to continue?: yes.