# MySQL\_Close

## `MySQL_Close` (FB)

FUNCTION\_BLOCK MySQL\_Close

**Kurze Beschreibung:**

> Dieser Funktionsbaustein beendet die MySQL-Verbindung.

**Detaillierte Beschreibung:**\
Der Schließvorgang startet mit einer steigenden Flanke von `xStart`. Die Variable `xStart` wird am Ende des Vorgangs zurückgesetzt.\
Tritt während des Schließvorgangs ein Fehler auf, wird ein FEHLER-Code sowie der aktuelle Ausführungszustand angezeigt, was bei der Identifizierung des Problems hilft.

InOut:

| Scope  | Name               | Type                    | Comment                                                                        |
| ------ | ------------------ | ----------------------- | ------------------------------------------------------------------------------ |
| Inout  | `xStart`           | `BOOL`                  | Start execution on a rising edge                                               |
| Inout  | `MySQL_Connection` | MySQL\_ConnectionString | <p>MySQL connection string which holds the server and login<br>information</p> |
| Output | `eError`           | ERROR                   | Error type                                                                     |
| Output | `sExeute_State`    | `STRING(200)`           | Current execute state                                                          |


---

# 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://support.powerio.com/hub/codesys-hvac/mysql-library/funktionsbausteine/mysql_close.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.
