# MySQL Connector

MySQL is an open-source relational database management system that can store data in tabular form, i.e., rows and columns.

## Create a MySQL Connector

The MySQL Connector falls under the Database Connector. To create a MySQL connector, follow the usual steps to create a connector as mentioned above. For MySQL-specific details, proceed as follows:&#x20;

* To define the MySQL connector, select “MySQL” from the list of values.

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_8/ch8selmysql.png" alt=""><figcaption></figcaption></figure>

* Add relevant details under the MySQL Host & Login Details section:&#x20;
  1. “Host name”: Enter the server details of the host.&#x20;
  2. “Port number”: Enter the port number to connect. By default, Langstack prefills it with the default MySQL port 3306. However, users can change the port number as needed.
  3. “Username”: Enter username for the connector.&#x20;
  4. “Password”: Enter password for the connector.&#x20;
  5. “DB (Database) Name”: Enter the Database name.

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_8/ch8mysqllabelled.png>" %}

* Save and test the connection as described in [Create a connector](/welcome/get-started/learn-langstack/connectors/create-a-connector.md) section.


---

# 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://docs.langstack.com/welcome/get-started/learn-langstack/connectors/mysql-connector.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.
