Shadow vs. main database check does not consider the port #7216
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
topic: prisma migrate dev
CLI: prisma migrate dev
topic: shadow database
Milestone
and
leads to
This is wrong, as 3306 is my remote Planetscale DB via proxy, and 3316 is my local MySQL 8.
Seems the check for this is missing to consider the port:
https://github.com/prisma/prisma-engines/blob/340b485a62f6fd071bcd47a33a5263db491df86f/migration-engine/connectors/sql-migration-connector/src/flavour/mysql.rs#L77-L79
https://github.com/prisma/prisma-engines/blob/fd7b031cb9e9ac89b2d15c29f39f704f672da00b/migration-engine/connectors/sql-migration-connector/src/flavour/postgres.rs#L48-L50
https://github.com/prisma/prisma-engines/blob/c1113c6285960eb54d71be971738abe600727268/migration-engine/connectors/sql-migration-connector/src/flavour/mssql.rs#L61-L63
PS: Can be worked around by using
127.0.0.1
andlocalhost
as hostnames :)The text was updated successfully, but these errors were encountered: