SQL Server думает, что я вхожу с учетной записи компьютера с flyway, но я не - PullRequest
0 голосов
/ 19 октября 2018

Попытка использовать командную строку flyway для подключения к SQL Server.Порты 1433 и 1434 открыты на брандмауэре, и tCPIP настроен для использования их в диспетчере конфигурации SQLServer.

Из файла конфигурации flyway:

flyway.url=jdbc:sqlserver:////<mymachineName>;databaseName=AdventureWorks2012
flyway.user=<username>
flyway.password=<password>

Когда я запускаю

.\flyway info

Я получаю что-то вроде:

+ ~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (ERROR: :String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

Unable to obtain connection from database (jdbc:sqlserver:////<myMachineName>;databaseName=AdventureWorks2012) for user '<username>': The TCP/IP connection to the host //<myMachineName>, port 1433 has failed. Error: "//<myMachineName>. Verify the connection properties. Make 
sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SQL State  : 08S01
Error Code : 0
Message    : The TCP/IP connection to the host //<myMachineName>, port 1433 has failed. Error: "//<myMachineName>. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make 
sure that TCP connections to the port are not blocked by a firewall.".

Я также получаю странную ошибку в журнале ошибок sql:

Source      Logon

Message
Login failed for user '<domain_Name:MachineName$'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]

В основном кажется, что я пытаюсьвойти в систему с учетной записью машины.Любая помощь приветствуется.

1 Ответ

0 голосов
/ 22 октября 2018

Слишком много рубят в URL?Должно быть только

jdbc:sqlserver://<mymachineName>
               ^^
               Only two slashes here.
...