hey guys i cant connect to my db from a new project,
when i attempt to create a new db using mix ecto.setup / mix ecto.create
i am getting this connection error
01:05:10.426 [error] GenServer #PID<0.284.0> terminating
** (Tds.Error) tcp connect: econnrefused
(db_connection 2.4.1) lib/db_connection/connection.ex:100: DBConnection.Connection.connect/2
(connection 1.1.0) lib/connection.ex:622: Connection.enter_connect/5
(stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: nil
State: Tds.Protocol
** (Mix) The database for Razo.Repo couldn't be created: killed
(UndefinedFunctionError) function Tds.Encoding.encode/2 is undefined (module Tds.Encoding is not available)
Tds.Encoding.encode("DESKTOP-DQ7NHKS", "utf-16le")
Better open a new thread. Also post more code and show what have you tried (including library version). Generic questions are usually not answered so please make sure you include some details.
Per the README, make sure you’ve included {:tds_encoding, "~> 1.0"} in your dependencies in mix.exs - just setting the configuration without installing the package would produce exactly the error above.