> For the complete documentation index, see [llms.txt](https://easonwang.gitbook.io/web_advance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easonwang.gitbook.io/web_advance/aws/aws-rds.md).

# AWS RDS

關聯式資料庫，可選擇 MySQL, MariaDB 等等。

![](/files/CothLx4WHGnBJuiChvbq)

等到建制程序都跑完會顯示如下：（此時可連線）

![](/files/uMGNXPzVUgC4tJYtNTJT)

## 連線：

mysql -h \<host> -P 3306 -u admin -p

## 設置公開連線

建置好預設不能公開連線：需要開啟 security group 3306 port，使設置公開連線為是。

![](/files/urpa33tN2rrYiHbtIt98)

## 如果用 Postgres 15 版本之後要設定以下

照以下連結設置 rds.force\_ssl 1 為 0，不然會出現以下錯誤

```
error: no pg_hba.conf entry for host
```

<https://stackoverflow.com/a/77787495>
