> For the complete documentation index, see [llms.txt](https://wiki.securiters.com/securiters-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.securiters.com/securiters-wiki/puertos-and-servicios/3306-mysql.md).

# 3306 - MySQL

{% code overflow="wrap" %}

```bash
nmap -sV -p 3306 --script=mysql-audit,mysql-databases,mysql-dump-hashes,mysql-empty-password,mysql-enum,mysql-info,mysql-query,mysql-users,mysql-variables,mysql-vuln-cve2012-2122 IP
```

{% endcode %}

### Probar

Buscar ficheros del sistema

#### FIcheros de configuración

* windows
  * config.ini
  * my.ini
    * windows\my.ini
    * winnt\my.ini
    * \<InstDir>/mysql/data/
* unix
  * my.cnf
  * /etc/my.cnf
  * /etc/mysql/my.cnf
  * /var/lib/mysql/my.cnf
  * \~/.my.cnf
  * /etc/my.cnf

#### Historial de comandos

* \~/.mysql.history

#### Logs

* connections.log
* update.log
* common.log
