Can't connect using a non-root user

Note you don’t need to set the environment variables if you are setting the repo configuration. Could you paste the output (without secrets) of:

iex> MyApp.Repo.config()

? Also please paste your myxql, ecto, and ecto_sql versions, and make you sure you tried on the latest myxql release (although I don’t think we ever had such bug)