calendar Last updated: 25 November 2026
Data integration
How to's

How to Connect MySQL to ChatGPT with Windsor.ai

Try It Free

Connect your data in 1 min. Free forever plan

Got insights from this post? Give it a boost by sharing with others!

To connect MySQL to ChatGPT, add a MySQL connection in Windsor.ai with your server’s host, port, database user, password, database name and the table you want, and allow Windsor.ai’s IP address (94.130.231.239) on your database server. Then install the Windsor.ai plugin in ChatGPT and ask about that table in plain language.

Each Windsor.ai MySQL connection covers one table, so connect each table you want ChatGPT to read. Create a read-only database user for Windsor.ai first, because ChatGPT only needs to read.

What you need before you start

  • A MySQL server that Windsor.ai can reach over the internet on its MySQL port (3306 by default), with your firewall open to 94.130.231.239.
  • Permission to create a database user, or a read-only user your database admin creates for you.
  • A Windsor.ai account. The free forever plan (no credit card) includes 1 data source. Paid plans start at $19/month for 3 sources, billed annually (pricing).
  • A ChatGPT account that can install plugins.

Step 1. Create a read-only MySQL user

Give Windsor.ai its own user that can only read the table you connect. In MySQL, run this with your own database, table and password:

CREATE USER 'windsor_ro'@'94.130.231.239' IDENTIFIED BY 'a-strong-password';
GRANT SELECT ON your_database.your_table TO 'windsor_ro'@'94.130.231.239';

The user can then connect only from Windsor.ai’s IP address and only run SELECT on that table. Repeat the GRANT line for each further table you plan to connect.

Step 2. Allow Windsor.ai’s IP address

If your database sits behind a firewall, a cloud security group or a hosting panel’s remote-access list, add an inbound rule for 94.130.231.239 on your MySQL port. The Windsor.ai connection form shows this address under “Instructions to grant access”.

Step 3. Add the MySQL connection in Windsor.ai

  • Open onboard.windsor.ai/app/mysql and log in, or create a free account.
  • Enter the host, port, user and password from step 1, the database name and the table name exactly as it is in MySQL.
  • Select Add Account. To connect another table, fill in the form again with that table name.
Windsor.ai MySQL connection form with host, port, user, password, database, table name and the IP address to allow

Step 4. Install the Windsor.ai plugin in ChatGPT

  • In ChatGPT, select Plugins in the sidebar and search for Windsor.ai, or open the Windsor.ai plugin page.
  • Select Install plugin, then Connect Windsor.ai. Sign in to Windsor.ai with the account where you added the MySQL connection and select Back to ChatGPT.
  • In a new chat, select + and choose Windsor.ai, or type @Windsor.ai.
Connect Windsor.ai pop-up in the ChatGPT Plugins page
Windsor.ai page with the Back to ChatGPT button after connecting data

To check the connection, ask:

Is MySQL connected in my Windsor.ai account? List the connected tables and the columns of each.

We have no MySQL database connected to our Windsor.ai account, so on 19 November 2026 we asked ChatGPT what a connection needs. It answered “Not connected” and listed the same 6 required fields as the form: host, port, user, password, database and table name. One thing it could not tell us was Windsor.ai’s IP address: it suggested asking Windsor.ai support. The address is on the connection form itself, under “Instructions to grant access”.

ChatGPT checking the Windsor.ai account for a MySQL connection and listing the fields the form needs

What ChatGPT can read from MySQL

Windsor.ai has no fixed field list for MySQL: the fields are the column names of the table you connect, as the MySQL field reference explains. If your orders table has order_date, customer_id and total columns, those are the names to use in your questions.

  • Dates: name the date column in your question (“by order_date”), so Windsor.ai filters the right column.
  • Several tables: each table is a separate connection. ChatGPT can read several connected tables in one chat and put the results side by side. It does not send your own SQL or run joins on your server.
  • Read only: the MySQL connector has no write actions (write actions list, checked on 19 November 2026), and with the user from step 1 the database also refuses any change.
  • Cache: the same query repeated within 6 hours can return cached data. Select Clear Cache in Data Preview in the Windsor.ai app for fresh rows.

Prompts to try

Replace the table and column names with your own.

From my MySQL orders table, show the total of the total column by order_date for the last 30 days, and the 3 days with the highest totals.
From my MySQL customers table, count new rows by week of created_at for the last 30 days, and flag any week below the average.
From my MySQL orders table, group the last 30 days by product_category and rank the categories by the sum of total.

Prompts that cover more than 30 days need a paid plan. The free forever plan includes the last 30 days.

Combine MySQL with your other sources

On a paid plan you can connect MySQL tables next to other sources, for example Google Ads or Meta Ads spend next to revenue from an orders table, or Google Analytics 4 sessions next to signups from a customers table, and ask ChatGPT to compare them in one chat.

Troubleshooting

  • The connection fails: check that 94.130.231.239 is allowed on your MySQL port, that the host and port are reachable from the internet, and that the user from step 1 exists with that host.
  • ChatGPT cannot find a table: each table is a separate connection. Add the table in Windsor.ai and make sure the user has SELECT on it.
  • ChatGPT says MySQL is not connected: the plugin may be signed in to a different Windsor.ai account than the one with the MySQL connection.

Next steps

The MySQL to ChatGPT connector page has more use cases. For Claude, see how to connect a MySQL database to Claude. To send other sources into MySQL instead, see the MySQL destination.

Connect your MySQL table in Windsor.ai. Free forever plan, no credit card.

FAQs

Do I need to write code or SQL to connect MySQL to ChatGPT?

Only two lines of SQL, to create a read-only user for Windsor.ai (step 1). After that you fill in a form in Windsor.ai and ask ChatGPT in plain language. ChatGPT does not send your own SQL to the database.

Tired of juggling fragmented data? Get started with Windsor.ai today to create a single source of truth

Let us help you automate data integration and AI-driven insights, so you can focus on what matters, growth strategy.
g logo
fb logo
big query data
youtube logo
power logo
looker logo