> For the complete documentation index, see [llms.txt](https://docs.langstack.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.langstack.com/welcome/get-started/learn-langstack/connectors/mysql-connector.md).

# 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.
