LoginSignup
0
1

More than 1 year has passed since last update.

Couldn't find database client: mysql, mysql5. Check your $PATH and try again

Last updated at Posted at 2023-05-02
$ docker-compose run hoge rails dbconsole

エラー。

エラー内容

Couldn't find database client: mysql, mysql5. Check your $PATH and try again.

解決

dockerfileにmariadb-clientを追記

RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs mariadb-client

再度実行

docker-compose run hoge rails dbconsole

いけた。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1