{"id":1688,"date":"2025-07-31T18:35:25","date_gmt":"2025-08-01T00:35:25","guid":{"rendered":"https:\/\/querystreams.com\/?post_type=docs&#038;p=1688"},"modified":"2026-11-09T09:09:28","modified_gmt":"2026-11-09T15:09:28","password":"","slug":"how-to-connect-mysql-to-microsoft-excel","status":"publish","type":"docs","link":"https:\/\/querystreams.com\/pt\/docs\/how-to-connect-mysql-to-microsoft-excel\/","title":{"rendered":"Como conectar o MySQL ao Excel \u2013 Transmitir dados do banco de dados em tempo real"},"content":{"rendered":"\n<article class=\"qs-d qs-d--v5\" data-src=\"mysql\" data-dest=\"excel\" style=\"--qs-src:0 117 143;--qs-src-deep:0 53 69;--qs-src-ink:0 117 143;--qs-src-tint:#00A3C7;--qs-dst:33 115 70;--qs-dst-tint:#7fdc9e\">\n<section class=\"qs-v5-hero qs-v5-hero--doc\" data-qs-art=\"hero-connectors\" aria-label=\"Introduction\"><div class=\"qs-v5-hero__words\"><div class=\"qs-v5-lockup\"><span class=\"qs-v5-lockup__item\"><span class=\"qs-v5-lockup__mark\"><a class=\"lnk\" href=\"https:\/\/querystreams.com\/database-integrations\/mysql\/\" aria-label=\"MySQL: all integrations\" data-qs-cta=\"hub_page\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/my-sql-40.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/a><\/span><span class=\"qs-v5-lockup__name\">MySQL<\/span><\/span><i class=\"fa-solid fa-arrow-right qs-v5-lockup__arrow\" aria-hidden=\"true\"><\/i><span class=\"qs-v5-lockup__item qs-v5-lockup__item--qs\"><span class=\"qs-v5-lockup__mark\"><a class=\"lnk\" href=\"https:\/\/my.querystreams.com\" rel=\"noopener\" title=\"Start free on the Free plan\" aria-label=\"Start free on the Free plan\" data-qs-cta=\"signup\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/qs-logo-mark-120.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/a><span class=\"qs-v5-lockup__pill\">Free plan<\/span><\/span><span class=\"qs-v5-lockup__name\">Query Streams<\/span><\/span><i class=\"fa-solid fa-arrow-right qs-v5-lockup__arrow\" aria-hidden=\"true\"><\/i><span class=\"qs-v5-lockup__item\"><span class=\"qs-v5-lockup__mark\"><a class=\"lnk\" href=\"https:\/\/querystreams.com\/features\/databases-in-excel-and-google-sheets\/\" title=\"Excel: databases in Excel and Google Sheets\" aria-label=\"Excel: databases in Excel and Google Sheets\" data-qs-cta=\"feature\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/icons8-excel-40.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/a><\/span><span class=\"qs-v5-lockup__name\">Excel<\/span><\/span><\/div><p class=\"qs-v5-hero__eyebrow\">MySQL &rarr; Excel &middot; with Query Streams<\/p><p class=\"qs-v5-hero__lede\">With Query Streams, pull live rows from your MySQL database into Excel through the Query Streams add-in and refresh them whenever you like. No ODBC driver, no exports, no macros. About ten minutes the first time, and the Free plan covers it.<\/p><a class=\"qs-v5-hero__btn\" href=\"https:\/\/my.querystreams.com\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"signup\">Start free<\/a><\/div><figure class=\"qs-v5-hero__art\"><picture><source media=\"(max-width: 640px)\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"><img fetchpriority=\"high\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-connectors-t1-720.webp\" srcset=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-connectors-t1-480.webp 480w, https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-connectors-t1-720.webp 720w, https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-connectors-t1-1080.webp 1080w, https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-connectors-t1-1440.webp 1440w\" sizes=\"(max-width: 900px) min(420px, calc(100vw - 97px)), min(720px, calc((100vw - 184px - min(5vw, 72px)) * 7 \/ 12))\" width=\"1440\" height=\"960\" alt=\"Isometric database cylinder linked by one line to a spreadsheet on a shared plinth\" loading=\"eager\" fetchpriority=\"high\" decoding=\"async\"><\/picture><\/figure><\/section>\n<div class=\"qs-d-support\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>Stuck at any point? Just ask us.<\/strong> Open <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">Support<\/a> in Query Streams (top-right menu &rarr; Support) and send us a message. Real people read it, and &ldquo;I don&rsquo;t know what this screen is asking for&rdquo; is a perfectly good question.<\/div><\/div>\n\n<h2 id=\"result\">What you&rsquo;ll end up with<\/h2>\n<p class=\"qs-d-lead\"><img decoding=\"async\" class=\"qs-d-lead__icon\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/my-sql-40.png\" alt=\"MySQL logo\" width=\"28\" height=\"28\">A worksheet showing the live results of a SQL query against your MySQL database, with a button that pulls the latest rows whenever the data changes. Like this:<\/p>\n<div class=\"qs-d-sheet\" role=\"img\" data-qs-seen=\"result\" aria-label=\"An Excel worksheet showing a customers table streamed from your MySQL database, with the Query Streams panel open on the right\"><div class=\"qs-d-sheet__bar\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/icons8-excel-40.png\" alt=\"\" width=\"18\" height=\"18\"> Sales.xlsx <span>&mdash; Excel<\/span><\/div><div class=\"qs-d-sheet__tabs\"><b>Home<\/b><span>Insert<\/span><span>Data<\/span><span>Query Streams<\/span><\/div><div class=\"qs-d-sheet__pane\"><table><thead><tr><th><\/th><th>A<\/th><th>B<\/th><th>C<\/th><th>D<\/th><th>E<\/th><\/tr><\/thead><tbody><tr class=\"hdr\"><th>1<\/th><td>customer_id<\/td><td>first_name<\/td><td>last_name<\/td><td>country<\/td><td>total<\/td><\/tr><tr><th>2<\/th><td class=\"num\">1042<\/td><td>Maria<\/td><td>Alvarez<\/td><td>USA<\/td><td class=\"num\">1,284.50<\/td><\/tr><tr><th>3<\/th><td class=\"num\">1043<\/td><td>Daniel<\/td><td>Okafor<\/td><td>USA<\/td><td class=\"num\">612.00<\/td><\/tr><tr><th>4<\/th><td class=\"num\">1047<\/td><td>Priya<\/td><td>Nair<\/td><td>USA<\/td><td class=\"num\">2,090.75<\/td><\/tr><tr><th>5<\/th><td class=\"num\">1051<\/td><td>Thomas<\/td><td>Berg<\/td><td>USA<\/td><td class=\"num\">338.20<\/td><\/tr><tr><th>6<\/th><td class=\"num\">1056<\/td><td>Luc&iacute;a<\/td><td>Ferreira<\/td><td>USA<\/td><td class=\"num\">1,455.00<\/td><\/tr><tr><th>7<\/th><td class=\"num\">1060<\/td><td>Kenji<\/td><td>Sato<\/td><td>USA<\/td><td class=\"num\">874.10<\/td><\/tr><tr><th>8<\/th><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><aside class=\"qs-d-sheet__side\"><div class=\"t\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/08\/cropped-Transparent-01.png\" alt=\"\" width=\"16\" height=\"16\"> Query Streams<\/div><div class=\"row\"><span>Connection<\/span><span class=\"conn\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/my-sql-40.png\" alt=\"\" width=\"14\" height=\"14\"> My MySQL database<\/span><\/div><div class=\"row\"><span>Query<\/span><span>US customers<\/span><\/div><div class=\"row\"><span>Rows<\/span><span>6<\/span><\/div><div class=\"row\"><span>Last run<\/span><span>just now<\/span><\/div><span class=\"go\"><i class=\"fa-solid fa-play\"><\/i><\/span><\/aside><\/div><div class=\"qs-d-sheet__status\"><span>Sheet1<\/span><span class=\"qs-d-sheet__src\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/my-sql-40.png\" alt=\"\"> Live from MySQL<\/span><\/div><\/div>\n<p>MySQL holds your data on a server you or your team run. Getting it into Excel usually means drivers, connection strings, or exports that go stale the moment they land. Query Streams skips that: a small helper program called the Agent runs the query where your data is, and an Excel add-in asks it for the rows you want. Only the results travel, over an encrypted link, and Excel can be anywhere: your laptop at home, a colleague&rsquo;s machine across the country, or Excel on the web.<\/p>\n<figure class=\"qs-d-figure\" data-qs-seen=\"flow\"><svg viewBox=\"0 0 900 210\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"WHERE THE DATABASE LIVES, holds your MySQL database and the Query Streams Agent. Query Streams carries encrypted results over the internet to Excel wherever you are.\"><defs><marker id=\"qsArrow\" viewBox=\"0 0 10 10\" refX=\"9\" refY=\"5\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto-start-reverse\"><path d=\"M0,0 L10,5 L0,10 z\" fill=\"#6589A6\"\/><\/marker><\/defs><rect x=\"14\" y=\"14\" width=\"380\" height=\"166\" rx=\"16\" fill=\"#ffffff\" stroke=\"#00758F\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><text x=\"32\" y=\"38\" font-family=\"Poppins, sans-serif\" font-size=\"11\" font-weight=\"600\" fill=\"#003545\" letter-spacing=\"1.5\">WHERE THE DATABASE LIVES<\/text><text x=\"32\" y=\"54\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#7D8688\">your office network or server room<\/text><rect x=\"36\" y=\"72\" width=\"160\" height=\"78\" rx=\"12\" fill=\"#00758F\" fill-opacity=\".12\" stroke=\"#00758F\" stroke-width=\"1.5\"\/><text x=\"116\" y=\"99\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#003545\">Your MySQL<\/text><text x=\"116\" y=\"116\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#003545\">database<\/text><text x=\"116\" y=\"137\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#00758F\">stays on your network<\/text><rect x=\"212\" y=\"72\" width=\"160\" height=\"78\" rx=\"12\" fill=\"#13323B\"\/><text x=\"292\" y=\"104\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#ffffff\">Query Streams Agent<\/text><text x=\"292\" y=\"126\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#a9dfcb\">on the same network<\/text><line x1=\"198\" y1=\"111\" x2=\"208\" y2=\"111\" stroke=\"#6589A6\" stroke-width=\"2.5\" marker-end=\"url(#qsArrow)\"\/><line x1=\"394\" y1=\"111\" x2=\"428\" y2=\"111\" stroke=\"#6589A6\" stroke-width=\"2.5\" stroke-dasharray=\"4 4\" marker-end=\"url(#qsArrow)\"\/><rect x=\"432\" y=\"80\" width=\"100\" height=\"62\" rx=\"31\" fill=\"#66C0A3\"\/><text x=\"482\" y=\"106\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"12\" font-weight=\"700\" fill=\"#0b2027\">Query Streams<\/text><text x=\"482\" y=\"124\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10.5\" fill=\"#0b2027\">encrypted link<\/text><line x1=\"534\" y1=\"111\" x2=\"568\" y2=\"111\" stroke=\"#6589A6\" stroke-width=\"2.5\" stroke-dasharray=\"4 4\" marker-end=\"url(#qsArrow)\"\/><text x=\"482\" y=\"166\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#6589A6\">over the internet &middot; results only<\/text><rect x=\"572\" y=\"14\" width=\"314\" height=\"166\" rx=\"16\" fill=\"#ffffff\" stroke=\"#217346\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><text x=\"590\" y=\"38\" font-family=\"Poppins, sans-serif\" font-size=\"11\" font-weight=\"600\" fill=\"#1e4d2b\" letter-spacing=\"1.5\">WHEREVER YOU ARE<\/text><text x=\"590\" y=\"54\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#7D8688\">your laptop, another office, a hotel, your phone<\/text><rect x=\"594\" y=\"72\" width=\"270\" height=\"78\" rx=\"12\" fill=\"#e2efda\" stroke=\"#b7d7a8\"\/><text x=\"729\" y=\"104\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#1e4d2b\">Excel<\/text><text x=\"729\" y=\"126\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#3d6b47\">Windows, Mac, or Excel on the web<\/text><\/svg><figcaption>The Agent lives with your data. Excel does not have to. Open the sheet anywhere and the rows come to you.<\/figcaption><\/figure>\n\n<h2 id=\"need\">What you&rsquo;ll need<\/h2>\n<div class=\"qs-d-grid\" data-qs-seen=\"need\"><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-user-plus\"><\/i><\/span><h3>A Query Streams account<\/h3><p>The Free plan is enough for this guide. Sign up at <a href=\"https:\/\/my.querystreams.com\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"signup\">my.querystreams.com<\/a>.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-download\"><\/i><\/span><h3>The Agent on a computer that can reach the server<\/h3><p>A small program that runs in the background and queries the database when Excel asks. Often the database server itself, or any always-on computer on the same network.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"src\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/my-sql-40.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><\/span><h3>Your MySQL connection details<\/h3><p>The server name, the database name, and a username and password that can read it. If someone else manages the database, this is the bit to ask them for.<\/p><\/div><\/div><div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>Which computer gets the Agent?<\/strong> Any always-on machine that can already reach your MySQL database, often the database server itself or a computer on the same network. <strong>Excel can be anywhere<\/strong>, including Excel on the web.<\/p><\/div>\n\n<h2 id=\"steps\">Connect it in five steps<\/h2>\n<ol class=\"qs-d-steps\" data-qs-seen=\"steps\">\n    <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"step-1\">\n      <h3>Create your account<\/h3>\n      <p>Go to <a href=\"https:\/\/my.querystreams.com\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"signup\">my.querystreams.com<\/a> and sign up. Pick the <strong>Free<\/strong> plan. It is a real plan, not a trial, and it covers connecting your MySQL database and running queries from Excel.<\/p>\n    <\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"step-2\"><h3>Install the Agent on a computer that can reach the server <span class=\"qs-d-os\" role=\"img\" aria-label=\"Windows, Mac and Linux\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/03\/icons8-windows-48.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/03\/icons8-apple-inc-48.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/03\/icons8-linux-48.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><\/span><\/h3><p>Sign in, open <a href=\"https:\/\/my.querystreams.com\/download\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"download\">Download<\/a>, and install the Agent on a machine that can already reach your MySQL database: often the database server itself, or any always-on computer on the same network. It takes a minute and starts on its own from then on.<\/p><div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-network-wired\"><\/i><p><strong>Why a small program instead of a driver?<\/strong> The Agent is one install for Windows, Mac or Linux (about 85 MB on Windows, a little over 100 MB on Mac and Linux) that runs quietly in the background. It makes one outbound, encrypted connection to Query Streams, the same way a browser does, so you open no firewall port and set up no VPN. Your database stays on your network, and the rows travel to wherever you are, across the internet if need be. The only thing on your side is the add-in.<\/p><\/div><p>The Download page shows <strong>Your Access Key<\/strong>. Paste it into the Agent when it asks, and wait for the badge to read <strong>Connected to Query Streams<\/strong>. That is the only thing you do on the Agent itself.<\/p><p>Full walkthroughs if you want them: <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-windows\/\" data-qs-cta=\"install_doc\">Windows<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-macos\/\" data-qs-cta=\"install_doc\">Mac<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-linux\/\" data-qs-cta=\"install_doc\">Linux<\/a>.<\/p><\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"3\">\n      <h3>Point it at your MySQL database<\/h3>\n      <p>Back in your browser, open <a href=\"https:\/\/my.querystreams.com\/data-agents\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"open_data_agents\"><strong>Data Agents<\/strong><\/a> (under <strong>Data<\/strong> in the top menu). Your Agent is listed there. Click <strong>Add connector<\/strong>, choose <strong>MySQL<\/strong>, and fill in the details you gathered earlier:<\/p>\n      <dl class=\"qs-d-kv\">\n        <dt>Connection name<\/dt><dd>Any name you will recognise later, like Sales database.<\/dd>\n        <dt>Host<\/dt><dd>The server&#8217;s name or IP address, like 192.168.1.1, or localhost when the Agent runs on the database&#8217;s own computer.<\/dd>\n        <dt>Port<\/dt><dd>Starts at 3306; leave it unless your admin changed the port MySQL listens on.<\/dd>\n        <dt>Username<\/dt><dd>A database login that can read your data. The box starts empty; a read-only login is safest.<\/dd>\n        <dt>Password<\/dt><dd>The password for that login.<\/dd>\n      <\/dl>\n      <p>Click <strong>Test connection<\/strong>. When it reads <strong>Connected<\/strong> (or <strong>Signed in<\/strong>), click <strong>Next<\/strong>. The next screen, <strong>Which databases do you want to work with?<\/strong>, lists the databases this login can see: tick yours. No list? Type the name under <strong>Type a database name<\/strong> and click <strong>Verify<\/strong>. Then click <strong>Next<\/strong> through <strong>Data realm<\/strong> and finish with <strong>Create connector<\/strong>. The connection reaches your Agent within a few seconds.<\/p>\n      <div class=\"qs-d-cta\"><a class=\"qs-d-btn qs-d-btn--primary\" href=\"https:\/\/my.querystreams.com\/data-agents\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"open_data_agents\"><i class=\"fa-solid fa-plug-circle-plus\"><\/i> Open Data Agents<\/a><\/div>\n      <div class=\"qs-d-note\" data-zone=\"rose\"><i class=\"fa-solid fa-triangle-exclamation\"><\/i><p><strong>Test failed?<\/strong> Usually the server name or a firewall between the Agent&rsquo;s computer and the database. Try the same details from that computer with your usual database tool; if that fails, the Agent will too.<\/p><\/div>\n    <\/li>\n    <li class=\"qs-d-step qs-d-step--opt\" data-qs-step=\"qb\" id=\"query-builder\">\n      <h3>See your data in Query Builder <span class=\"qs-d-step__opt\">Optional<\/span><\/h3>\n      <p>You can look at your MySQL database before Excel is involved at all. Open <a href=\"https:\/\/my.querystreams.com\/query-builder\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"query_builder\"><strong>Query Builder<\/strong><\/a> in the portal and pick the connection you just made. The <strong>Schema<\/strong> tab lists your tables and columns, and clicking one puts its name in the editor, so you can write a query without remembering exact names. Click <strong>Run<\/strong> and the rows appear under <strong>Results<\/strong>. Query Builder is on every plan, Free included.<\/p>\n      <p>On Business plans you can also ask Nova in plain English (&ldquo;show me customers in the USA&rdquo;) and it writes the SQL for you. When the query looks right, save it: from Personal Core up it shows in the add-in&rsquo;s Saved Queries list, and on any plan you can copy the SQL into the next step.<\/p>\n    <\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"step-4\">\n      <h3>Add Query Streams to Excel<\/h3>\n      <p>In Excel, go to <strong>Insert &rarr; Get Add-ins<\/strong>, search for <strong>Query Streams<\/strong>, and click <strong>Add<\/strong>. Or open it straight from <a href=\"https:\/\/marketplace.microsoft.com\/en-us\/product\/office\/WA200008696\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"appsource\">Query Streams on Microsoft AppSource<\/a>. A Query Streams button appears on the ribbon. Sign in with the same account.<\/p>\n      <p>Works in Excel for Microsoft 365 on Windows and Mac, and in Excel on the web.<\/p>\n    <\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"5\" id=\"step-5\">\n      <h3>Pull in your first table<\/h3>\n      <p>Click the Query Streams button, choose <strong>Stream a Query<\/strong>, and pick the connection you just made.<\/p>\n      <p>Type the query you want to run. This one pulls a few columns from a <strong>customers<\/strong> table:<\/p>\n      <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Example &middot; SQL<\/div>\n<pre class=\"qs-d-code__body\">SELECT customer_id, name, city\nFROM customers\nORDER BY name\nLIMIT 100;<\/pre><\/div>\n      <p>Under <strong>Destination Sheet<\/strong> choose <strong>Create a new sheet<\/strong>, then press the play button (the &#9654; arrow). The rows land in Excel in a second or two. Press it again any time the data has changed and the sheet updates in place.<\/p>\n      <div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-comment-dots\"><\/i><p><strong>Don&rsquo;t know SQL?<\/strong> Build it in <a href=\"#query-builder\" data-qs-cta=\"query_builder_step\">Query Builder<\/a> first and paste it here, or pick it from Saved Queries if you saved it.<\/p><\/div>\n    <\/li>\n<\/ol>\n\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-circle-check\"><\/i><p><strong>That&rsquo;s it.<\/strong> Your data is in the sheet and stays current with one click. Nothing left your network except the rows you asked for.<\/p><\/div>\n\n<h2 id=\"next\">Good next moves<\/h2>\n<ul>\n  <li><strong>Save the query<\/strong> in the portal so you can run it again with one click, from Excel or Google Sheets.<\/li>\n  <li><strong>Add a filter<\/strong> such as a date range, so the same query can answer &ldquo;this month&rdquo; without editing.<\/li>\n  <li><strong>Share the results<\/strong> with a colleague. They see the rows, not your credentials.<\/li>\n<\/ul>\n\n<h2 id=\"faq\">Questions people ask<\/h2>\n<div class=\"qs-d-faq\" data-qs-seen=\"faq\"><details><summary>Does Excel have to be on the same computer as your MySQL database?<\/summary><div class=\"qs-d-faq__a\"><p>No. Only the Agent has to be where your MySQL database is. Excel can be on any computer with an internet connection, including Excel on the web and Excel on a Mac. Sign in to the add-in with your account and your connections are there.<\/p><\/div><\/details><details><summary>Does my data get copied to Query Streams?<\/summary><div class=\"qs-d-faq__a\"><p>No. The Agent runs the query where your data is and sends only the rows it returns. Nothing is synced or stored in between.<\/p><\/div><\/details><details><summary>Does the Free plan really cover this?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. Free is a plan you keep, not a trial that expires. See exactly what it includes on the <a href=\"https:\/\/querystreams.com\/pricing\/\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"pricing\">pricing page<\/a>.<\/p><\/div><\/details><details><summary>Does it work with Excel for Mac?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. Excel for Microsoft 365 on Mac and Windows, and Excel on the web.<\/p><\/div><\/details><\/div>\n\n\n<div class=\"qs-d-support qs-d-support--foot\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>Still stuck?<\/strong> Open <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">Support<\/a> in Query Streams and tell us which step you are on and what you see. We will get you connected.<\/div><\/div>\n<div class=\"qs-d-cta\"><a class=\"qs-d-btn qs-d-btn--primary\" href=\"https:\/\/my.querystreams.com\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"signup\"><i class=\"fa-solid fa-user-plus\"><\/i> Create your Free plan account<\/a><a class=\"qs-d-btn qs-d-btn--ghost\" href=\"https:\/\/querystreams.com\/pricing\/\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"pricing\">See what Free includes<\/a><\/div>\n\n<h2 id=\"related\">Related guides<\/h2>\n<ul class=\"qs-d-related\">\n    <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-mysql-to-google-sheets\/\" data-qs-cta=\"related\">MySQL to Google Sheets<\/a><\/li>\n    <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-microsoft-sql-server-to-excel\/\" data-qs-cta=\"related\">Microsoft SQL Server to Microsoft Excel<\/a><\/li>\n    <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-postgresql-to-excel\/\" data-qs-cta=\"related\">PostgreSQL to Microsoft Excel<\/a><\/li>\n    <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-mariadb-to-microsoft-excel\/\" data-qs-cta=\"related\">MariaDB to Microsoft Excel<\/a><\/li>\n    <li><a href=\"https:\/\/querystreams.com\/docs\/sql-in-excel\/\" data-qs-cta=\"related\">Running SQL in Excel<\/a><\/li>\n    <li><a href=\"https:\/\/querystreams.com\/docs\/\" data-qs-cta=\"related\">All guides<\/a><\/li>\n  <\/ul>\n<div class=\"qs-d-also\" data-qs-seen=\"also\"><span>Query Streams also connects the same data to<\/span><a href=\"https:\/\/querystreams.com\/features\/databases-in-excel-and-google-sheets\/\" target=\"_blank\" rel=\"noopener\">Google Sheets<\/a><a href=\"https:\/\/querystreams.com\/features\/mcp-server\/\" target=\"_blank\" rel=\"noopener\">Claude, Cursor and ChatGPT<\/a><a href=\"https:\/\/querystreams.com\/features\/database-rest-api\/\" target=\"_blank\" rel=\"noopener\">a REST API<\/a><a href=\"https:\/\/querystreams.com\/features\/\" target=\"_blank\" rel=\"noopener\">and more<\/a><\/div>\n<\/article>\n<script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"HowTo\",\"name\":\"How to Connect MySQL to Microsoft Excel\",\"description\":\"Step-by-step guide to get live MySQL data into Microsoft Excel with Query Streams, without drivers or exports.\",\"totalTime\":\"PT10M\",\"step\":[{\"@type\":\"HowToStep\",\"position\":1,\"name\":\"Create your account\",\"text\":\"Sign up at my.querystreams.com and pick the Free plan.\",\"url\":\"https:\/\/querystreams.com\/docs\/how-to-connect-mysql-to-microsoft-excel\/#step-1\"},{\"@type\":\"HowToStep\",\"position\":2,\"name\":\"Install the Query Streams Agent\",\"text\":\"Install the Agent on a machine that can reach your MySQL database and paste in your Access Key.\",\"url\":\"https:\/\/querystreams.com\/docs\/how-to-connect-mysql-to-microsoft-excel\/#step-2\"},{\"@type\":\"HowToStep\",\"position\":3,\"name\":\"Add the MySQL connection in Data Agents\",\"text\":\"In the Query Streams portal open Data Agents, click Add connector, choose MySQL, enter the details, test and save.\",\"url\":\"https:\/\/querystreams.com\/docs\/how-to-connect-mysql-to-microsoft-excel\/#step-3\"},{\"@type\":\"HowToStep\",\"position\":4,\"name\":\"Add Query Streams to Microsoft Excel\",\"text\":\"Install the Query Streams add-in from Microsoft AppSource and sign in.\",\"url\":\"https:\/\/querystreams.com\/docs\/how-to-connect-mysql-to-microsoft-excel\/#step-4\"},{\"@type\":\"HowToStep\",\"position\":5,\"name\":\"Run your first query\",\"text\":\"Choose Stream a Query, pick the connection, enter a SELECT, choose Create a new sheet as the Destination Sheet, and press the play button.\",\"url\":\"https:\/\/querystreams.com\/docs\/how-to-connect-mysql-to-microsoft-excel\/#step-5\"}]}<\/script>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[33],"doc_tag":[56,55,42,58,57],"class_list":["post-1688","docs","type-docs","status-publish","hentry","doc_category-connector-setup","doc_tag-automation","doc_tag-database-integration","doc_tag-excel","doc_tag-mysql","doc_tag-no-code"],"year_month":"2026-12","word_count":851,"total_views":"2547","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Suporte a Query Streams","author_nicename":"support","author_url":"https:\/\/querystreams.com\/pt\/author\/support\/"},"doc_category_info":[{"term_name":"Data Connector Setup","term_url":"https:\/\/querystreams.com\/pt\/docs-category\/connector-setup\/"}],"doc_tag_info":[{"term_name":"automation","term_url":"https:\/\/querystreams.com\/pt\/docs-tag\/automation\/"},{"term_name":"database-integration","term_url":"https:\/\/querystreams.com\/pt\/docs-tag\/database-integration\/"},{"term_name":"excel","term_url":"https:\/\/querystreams.com\/pt\/docs-tag\/excel\/"},{"term_name":"mysql","term_url":"https:\/\/querystreams.com\/pt\/docs-tag\/mysql\/"},{"term_name":"no-code","term_url":"https:\/\/querystreams.com\/pt\/docs-tag\/no-code\/"}],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"betterdocs-category-thumb":false},"uagb_author_info":{"display_name":"Query Streams Support","author_link":"https:\/\/querystreams.com\/pt\/author\/support\/"},"uagb_comment_info":0,"uagb_excerpt":null,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/docs\/1688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/comments?post=1688"}],"version-history":[{"count":3,"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/docs\/1688\/revisions"}],"predecessor-version":[{"id":7999,"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/docs\/1688\/revisions\/7999"}],"wp:attachment":[{"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/media?parent=1688"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/doc_category?post=1688"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/querystreams.com\/pt\/wp-json\/wp\/v2\/doc_tag?post=1688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}