Closed belgoros closed 1 year ago
please try changing your port from "33306"
to 3306
(integer) :)
@wojtekmach the port is correct (even if the default one used by MySQL is 3306). As I pointed it out earlier, I can connect to this DB from MySQLWorkbench and using a simple Ruby script.
Ok. Can you try changing it from a string to an integer?
Yep, changing to integer made it work:
port: 33306,
I created a dummy Phoenix app and set up the MySQL as database option. So the generated
dev.exs
settings look like that:The
mix.exs
has the following declared deps:After successfully installing the dependencies and starting the IEX console, it failed to connect to the database:
Adding
protocol: :tcp
to the Db connection settings didn't fix the error:I can connect to the same DB from any DB client or even from a simple Ruby script using
ActiveRecord
settings. The database is running inside a Docker container locally on the same PC.