2016-12-02 138 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