hello all,
I use sqlite as the database. In the local database, It is all right
config.exs
config :store_api, StoreApi.Repo,
database: Path.expand("../store_api_dev.db", Path.dirname(__ENV__.file)),
pool_size: 5,
stacktrace: true,
show_sensitive_data_on_connection_error: true
But when I change the remote database.I don’t know how to modify config.exs
like mysql or postgres. In config.exs. add hostname field and tablename
config :store_api, StoreApi.Repo,
hostname: "192.168.113.124:4001",
database: "store_api_dev.db",
pool_size: 5,
stacktrace: true,
show_sensitive_data_on_connection_error: true
It is incorrect. my log is
[error] Exqlite.Connection (#PID<0.605.0>) failed to connect: ** (Exqlite.Error) got :eio while retrieving Exception.message/1 for %Exqlite.Error{message: :eio, statement: nil} (expected a string)
what should I do ?
thanks everyone!!!