Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

In config/dev.exs:

config :drupex, Drupex.Repo,
  adapter: Ecto.Adapters.Postgres,
  -- username, password, database, hostname, pool_size omitted --

config :drupex, Drupex.DrupalRepo,
  adapter: Ecto.Adapters.Mysql,
  -- username, password, database, hostname omitted --

In mix.exs under defp deps do I added {:mariaex, "~> 0.8.2"}, just after {:postgrex, ">= 0.0.0"}. Finally in lib/drupex/repo.ex I added

defmodule Drupex.DrupalRepo do
  use Ecto.Repo, otp_app: :drupex
end

I ran mix deps.get , mix deps.compile now running mix I get

** (ArgumentError) adapter Ecto.Adapters.Mysql was not compiled, ensure it is correct and it is included as a project dependency
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
197 views
Welcome To Ask or Share your Answers For Others

1 Answer

Turns out the adapter is called MySQL and it is case sensitive. Changing to adapter: Ecto.Adapters.MySQL, solved the problem.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...