Hi! The issue here is that postgrex (the library that implements a PostgreSQL database driver) used to use functions that have been deprecated and recently removed in the newest Erlang 24 release. But currently released postgrex and Phoenix versions are already compatible.
How did you install Phoenix? I just installed it anew with mix archive.install hex phx_new 1.5.12 and mix phx.new discuss, and then mix ecto.create succeeded on Erlang 24 without additional steps. Typing mix phx should show installed phoenix version near the top.
I first installed erlang otp24 X64 binary from official site.
Then installed Elixir through windows web installer ( official site ) and it takes path to above erlang folder.
opened cmd and installed phoenix framework through following command:-
mix archieve.install hex phx_new 1.5.12
created a new project :- mix phx.new discuss
Ran command :- mix ecto.create
And got the error.
Just for your info I installed postgres through official installer.
Do we require to make an empty db prior to starting this command?
Or it will be automatically created.
As being from hibernate background we need to manually create an empty db with same name as we want to use.
Do we require to make an empty db prior to starting this command?
Or it will be automatically created.
The mix ecto.create command is creating a database for you, using credentials from appropriate environment file in config/. But in your case it probably didn’t go that far and errors earlier.
I may find some time to try on Windows some time later this week, but I’m not sure why the behavior would be different… What you did sounds exactly like what should work. For completeness and to be sure, can you paste Phoenix version being printed by mix phx command and the output from elixir --version ?
Hi,
Just for your information when i tried to change the database and switched from postgres to mssql server, i got a success on windows. ( mix phx.new — Phoenix v1.5.12 )
phx version :- Phoenix v1.5.12 elixir version :-
Erlang/OTP 24 [erts-12.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]