# MySQL
For a tutorial see [MySQL cheatsheet](https://www.mysqltutorial.org/mysql-cheat-sheet/).
Logs are stored in `/var/log/mysql/mysql.log` file.
## Linux CLI
To connect to a MySQL database you can use the following command:
```sh
mysql -h <IP Address> -u <username>
```
From there the following commands are of interest:
`SHOW databases;`
`USE <database name>;`
`SHOW tables;`
## Hack The Box Machines
- [[Sequel Write-up|Sequel]]