Loading

连接到 Redshift 时出现“password authentication failed”错误

发布日期: Aug 24, 2022
描述
尝试从 Tableau Desktop 中连接到 Amazon Redshift 时,如果数据库密码包含特殊字符,则可能会发生以下错误之一:
 
与数据源通信时出错。
Unable to connect to the server. Check that the server is running and that you have access privileges to the requested database.(无法连接到服务器。请检查服务器是否正在运行,并且您具有所请求的数据库的访问权限。)

FATAL: password authentication failed for user "<user name>"(致命错误: 用户“<user name>”的密码验证失败)

FATAL: password authentication failed for user "<user name>"(致命错误: 用户“<user name>”的密码验证失败)

Unable to connect to the server "<server name>". Check that the server is running and that you have access privileges to the requested database.(无法连接到服务器“<server name>”。请检查服务器是否正在运行,并且您具有所请求的数据库的访问权限。)
 

Invalid username or password(用户名或密码无效)

Cause

此行为是 Amazon Redshift 的一个限制。 有关详细信息,请参见 Amazon Redshift 中的限制,其中提到了与密码相关的以下要求:“密码只能是任何可打印的 ASCII 字符(ASCII 码 33 至 126),'(单引号)、"(双引号)、\、/、@ 或空格除外”。
解决方案
移除 Redshift 密码中的任何特殊字符。
其他资源
对于以下字符会报告此错误:
  • +
  • @
  • {
  • }
  • )
  • ;
客户同时报告说,他们能够通过使用 JDBC 的 SQL 工作台,使用相同的用户名/密码连接到 Redshift。
 
知识文章编号

001473852

 
正在加载
Salesforce Help | Article