> For the complete documentation index, see [llms.txt](https://ph.benjtupas.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ph.benjtupas.com/code/databases.md).

# Databases

I'm planning to go back to SQL databases for better long-term benefits such as complex analytics queries where NoSQL technologies might have hiccups.

### Why Postgres?

* Better on complex queries
* Perfect for enterprise&#x20;
* Open source

### Why MySQL?

* Great for web apps
* Ease of use
* Optimized
* Small to Medium
* Owned by Oracle

### Tutorials

📽️ Set Up a Postgres on Amazon RDS with PGAdmin: <https://www.youtube.com/watch?v=XDMgXZUfa10>

📽️ Set Up a Postgres on Amazon RDS with DBeaver: <https://www.youtube.com/watch?v=XF1ZADfH0EQ>

📽️ Creating an RDS PostgreSQL Database on the AWS Free Tier: <https://www.youtube.com/watch?v=I_fTQTsz2nQ>

📽️ AWS RDS vs AWS Aurora for MySQL: <https://www.youtube.com/watch?v=yHCwjAbwS6M>

📽️ AWS RDS vs AWS Aurora for Postgres SQL: <https://www.youtube.com/watch?v=rQlp2PzklYE>

### Comparisons

📽️ MySQL vs Postgresql vs Microsoft SQL Server by Alex The Analyst: <https://www.youtube.com/watch?v=Q7i6zxHVj2Q>

📽️ SQL vs NoSQL: <https://www.youtube.com/watch?v=ruz-vK8IesE>

📽️ SQL vs NoSQL: <https://www.youtube.com/watch?v=t0GlGbtMTio>

📽️ PostgreSQL vs MySQL: <https://www.youtube.com/watch?v=btjBNKP49Rk>

📽️ How to Choose a Database on AWS: <https://www.youtube.com/watch?v=eK_umMYxZfM>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ph.benjtupas.com/code/databases.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
