> For the complete documentation index, see [llms.txt](https://ret2basic.gitbook.io/ctfnote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ret2basic.gitbook.io/ctfnote/computer-science/databases/mysql.md).

# MySQL

## Setup

Before we dive into SQLi techniques, it is critical to learn the fundamentals of MySQL first. We will set up our lab environment on Windows. We use the **MAMP** suite:

{% embed url="<https://www.mamp.info/en/windows>" %}
MAMP
{% endembed %}

The default credential for MySQL monitor is `root:root`. We can access the MySQL monitor from Powershell using the following command:

```sql
mysql -u root -proot
```

Remember that there is a space after `-u` but **no space** after `-p`.
