# mySQL

You need credentials to access this, linpeas wil ltell you if there is no password.&#x20;

Once you have credentials this is how you access it.&#x20;

```
mysql -uroot -p
Password: <passowrd>
```

After this we enumerate databases to see what things we can get out of it.&#x20;

![](/files/n9CTl63tdkKiOQzosAmK)

Take this instance as an example, we were able to get credentials out of a database and then switch users.&#x20;

```
show databases;
use <database-name>;
show tables;
select * from <table-name>;
```

Then if we can't find anything here we go onto enumerate for UDF exploitation.


---

# Agent Instructions: 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:

```
GET https://lyethar.gitbook.io/methodology/readme/privilege-escalation/linux/internal-services/mysql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
