# Description

***

So you can get started right away, we offer the library as a download. A license is not required for use. If you need further assistance, please do not hesitate to contact us.

<a href="https://app.gitbook.com/s/0iNqm20Eubny3McJVgbJ/codesys-hvac-downloads/mysql-library" class="button primary" data-icon="up-right-from-square">Download</a> <a href="https://store.codesys.com/de/mysql-library-sl.html" class="button secondary" data-icon="seal">Purchase license</a> <a href="https://www.powerio.com/de/kontakt" class="button secondary" data-icon="question">Get support</a>

### Overview

{% columns %}
{% column width="91.66666666666666%" %}

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2FpeK5GDxMXaDCziSGjj0k%2FScreenshot%202025-11-20%20at%2023.49.37.png?alt=media&#x26;token=892426e7-14e2-4f99-baec-14b33e7f12a5" alt="" width="563"><figcaption></figcaption></figure>

<p align="center">Execute SQL commands and conveniently read query results directly from the CODESYS application.</p>
{% endcolumn %}

{% column width="8.333333333333343%" %}

{% endcolumn %}
{% endcolumns %}

***

### Description

With the MySQL Library SL you can send SQL queries from your CODESYS V3 application to a MySQL database. Standard SQL operations such as INSERT, SELECT, UPDATE, DELETE as well as other commands (e.g. ALTER, DROP, etc.) are supported.

For example, you can:

* continuously write measured values, counter readings and production data into tables
* read configuration data or recipes from the database
* provide historical data for trend curves and analyses
* pass data to third-party systems for further processing (ERP, SCADA, reporting)

Key features:

* Direct connection to external or internal MySQL databases
* No additional drivers or middleware required on the PLC
* Worldwide access possible (dependent on network/IT infrastructure)
* Storage of large amounts of data from the controller (e.g. IoT/field device data)
* Sample project (CFC/ST) with visualization for a quick start

***

### Details

***
