> For the complete documentation index, see [llms.txt](https://arinem.gitbook.io/sqlsk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arinem.gitbook.io/sqlsk/docs/connect-to-database.md).

# Connect to database

{% hint style="danger" %}
The connection will require a MySQL database
{% endhint %}

### Type: Expression

### Syntax:

```
[sqlsk] mysql conn[ect[ion]] for %datainformation%
```

{% hint style="warning" %}
**Datainformation** these are data to connect to the database in the loyout&#x20;

"host database user password" | Separated by **;**

If you do not want to use a password in the ***password*** place, enter ***none***
{% endhint %}

### **Example:**

```java
set {_db} to mysql conn for "localhost;minecraft;admin;secretpass"
mysql {_db} query "UPDATE `herobrine` SET `location`='Behind you :)' WHERE `player` = 'Notch'"
```
