Nob*_*ift 5 php amazon-web-services amazon-redshift
我在亚马逊的网站上找不到与此有关的任何信息,但这可能吗?
对于那些正在寻找例子的人:
$connection = new PDO(
'pgsql:dbname=<db_name>;host=<redshift_cluster_host>;port=5439',
'<master_user_name>',
'<master_user_password>'
);
$statement = $connection->prepare('<your_query>');
$statement->execute();
$result = $statement->fetch();
Run Code Online (Sandbox Code Playgroud)
此外,请确保已正确配置群集安全组(在AWS Redshift管理员的"安全"选项卡下).
| 归档时间: |
|
| 查看次数: |
5323 次 |
| 最近记录: |