2016-12-02 160 views
1

我在RDS上創建了SQL Server Express實例。我還創建了一個安全組,併爲每個人啓用了SQL Server端口範圍1433。我還選擇了「可公開訪問」。無法連接AWS RDS SQL Server

當我嘗試從管理Studio連接,我不指定服務器名稱作爲實例,包括端口號的端點。我確實將身份驗證類型指定爲主用戶名和主密碼作爲SQL Server身份驗證。

我得到這個錯誤連接時:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid) (Microsoft SQL Server, Error: 87)

當我嘗試看看RDS實例登錄我看到下面的消息。

2016-12-01 22:31:19.65 Logon Login failed for user 'sa'. Reason: Could not find a login matching the name provided. [CLIENT: 123.249.0.134] 

回答

1

SA是不是一個可能的登錄,則在RDS例如禁用sysadmin不存在,SQL代理也不存在。

使用安全組來控制哪些IP地址或EC2實例可以連接到數據庫實例上的數據庫。當您首次創建數據庫實例時,其防火牆會阻止除通過關聯安全組指定的規則之外的任何數據庫訪問。

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.html