Skip to main content

Connect MySQL to the Knowledge Base

With the MySQL connector, you can connect your MySQL or MariaDB databases directly to the Knowledge Base. Once connected, EKB indexes the tables you specify, making your database content searchable and accessible to your AI agents for grounded, data-driven responses.

Connecting to MySQL​

  1. Open Project Settings

    In your EKB project, navigate to Settings in the sidebar.

  2. Go to Connections

    Select the Connections tab and find the MySQL tile under Databases.

  3. Open the MySQL popup

    Click the MySQL tile. A popup appears with the option to connect to MySQL databases. Click + Add Connection.

  4. Fill in the connection form

    Enter the following details:

    Server

    FieldRequiredDescription
    Connection NameYesA display name for this connection (e.g. My MySQL Connection).
    HostYesThe hostname or IP address of your MySQL server (e.g. localhost).
    PortYesThe port your MySQL server is listening on. Default is 3306.
    DatabaseYesThe name of the database to connect to (e.g. mydb).

    Authentication

    FieldRequiredDescription
    UsernameYesThe MySQL user (e.g. root).
    PasswordYesThe password for the MySQL user.

    Database

    FieldRequiredDescription
    TablesYesThe tables to index. Enter each table name separated by a comma.
  5. Save the connection

    Click Save. EKB will authenticate using the details provided. If successful, the MySQL tile on the Connections page will display a green dot and a count of your active MySQL connections.

✓You're now ready to use your MySQL data in the Knowledge Base!