I can't run the Migrate.exe with given connection string

67 views
Skip to first unread message

ataba...@gmail.com

unread,
Apr 18, 2019, 8:28:49 PM4/18/19
to FluentMigrator Google Group
Hey people,

In our class, teacher said he was going to use this extension and he only knew about the version 1.6.2 so I did download it and set it up on visual studio. Creating a new namespace was not hard as you can imagine but when it comes to running it on the command line, it doesn't work.
My command line command;

Migrate --db=MySql --target=PROJECTNAME.dll
-c="Data Source=127.0.0.1;Database=DBNAME;User Id=root;password=PASSWORD;"

The error that I am getting;
!!! Unable to connect to any of the specified MySQL hosts.

Can someone please help me?

Mark Junker

unread,
Apr 19, 2019, 4:30:41 AM4/19/19
to FluentMigrator Google Group

Hi,

this sounds like the tool was unable to connect to the database. This can have multiple reasons, like:

- No server listening on "localhost" (IPv4: 127.0.0.1, IPv6: [::1])
- Non-standard port (3306)
- Access blocked by a firewall (unlikely, but possible)

Kind regards,
Mark Junker
Reply all
Reply to author
Forward
0 new messages