{"id":7294,"date":"2026-10-10T22:42:18","date_gmt":"2026-10-11T03:42:18","guid":{"rendered":"https:\/\/querystreams.com\/docs\/create-a-read-only-database-user\/"},"modified":"2026-11-09T10:42:20","modified_gmt":"2026-11-09T16:42:20","password":"","slug":"create-a-read-only-database-user","status":"publish","type":"docs","link":"https:\/\/querystreams.com\/fr\/docs\/create-a-read-only-database-user\/","title":{"rendered":"Cr\u00e9ez un utilisateur de base de donn\u00e9es en lecture seule pour l&#039;agent."},"content":{"rendered":"\n<article class=\"qs-d\" data-src=\"database\" data-dest=\"excel\" style=\"--qs-src:102 192 163;--qs-src-deep:19 50 59;--qs-src-ink:26 122 97;--qs-src-tint:#8ed6bd;--qs-dst:33 115 70;--qs-dst-tint:#7fdc9e\">\n<header class=\"qs-d-hero\"><div class=\"qs-d-hero__pair\"><img decoding=\"async\" class=\"src\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/08\/database.png\" alt=\"\" width=\"44\" height=\"44\" loading=\"eager\"><\/div><span class=\"qs-d-eyebrow\">Connector setup &middot; Every database<\/span><p class=\"qs-d-hero__title\">Create a <em class=\"src\">read-only<\/em> database user for the Agent<\/p><p class=\"qs-d-hero__sub\">The Agent only ever reads. Give it a login that can only read, so nothing anyone does in Query Streams can change your data. One section per database, with the exact commands to copy.<\/p><div class=\"qs-d-hero__meta\"><span class=\"qs-d-pill\"><i class=\"fa-solid fa-clock\"><\/i> About 10 minutes<\/span><span class=\"qs-d-pill\"><i class=\"fa-solid fa-database\"><\/i> SQL Server, PostgreSQL, MySQL and more<\/span><span class=\"qs-d-pill src\"><i class=\"fa-solid fa-lock\"><\/i> Read only<\/span><\/div><\/header>\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\/2026\/08\/database.png\" alt=\"Database icon\" width=\"28\" height=\"28\"><span>A new database login, called <strong>qs_reader<\/strong> in the examples below, with a password you choose. It can sign in and read the tables you allow, and nothing else. You type that name and password into the <strong>Username<\/strong> and <strong>Password<\/strong> boxes when you add the connector in <strong>Data Agents<\/strong>.<\/span><\/p>\n\n<h2 id=\"why\">Why a separate read-only login<\/h2>\n<p>The Agent already refuses to run anything that is not a read. Every query it is asked to run, whether it comes from the Portal, Excel, Google Sheets, an AI assistant or the REST API, is checked on your computer before it reaches the database. Anything that starts with something other than <strong>SELECT<\/strong> (or a few other read-only words such as <strong>WITH<\/strong>, <strong>SHOW<\/strong> and <strong>EXPLAIN<\/strong>), or that contains <strong>INSERT<\/strong>, <strong>UPDATE<\/strong>, <strong>DELETE<\/strong>, <strong>DROP<\/strong>, <strong>ALTER<\/strong>, <strong>GRANT<\/strong> and similar words, is turned away with the message <strong>Only SELECT queries are permitted in read-only mode<\/strong>.<\/p>\n<p>A read-only login is the second lock. That check is a word filter on our side; a read-only login is enforced by your database itself. With both in place, even a mistake on our side could not change a row. It also keeps the powerful logins (<strong>sa<\/strong>, <strong>postgres<\/strong>, <strong>root<\/strong>, your WordPress or hosting account) out of Query Streams entirely.<\/p>\n\n<h2 id=\"need\">What you need<\/h2>\n<div class=\"qs-d-grid\">\n  <div class=\"qs-d-card\" data-zone=\"mint\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-solid fa-user-shield\"><\/i><\/span>\n    <h3>An administrator login, once<\/h3>\n    <p>Creating a user needs a login that is allowed to create users: the one used when the database was installed, or your hosting control panel. You only need it for these ten minutes; the Agent never sees it.<\/p>\n  <\/div>\n  <div class=\"qs-d-card\" data-zone=\"src\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-solid fa-terminal\"><\/i><\/span>\n    <h3>The database&rsquo;s own tool<\/h3>\n    <p>SQL Server Management Studio for SQL Server, pgAdmin or <strong>psql<\/strong> for PostgreSQL, MySQL Workbench or a hosting control panel for MySQL. Each section says which.<\/p>\n  <\/div>\n  <div class=\"qs-d-card\" data-zone=\"mint\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-solid fa-key\"><\/i><\/span>\n    <h3>A new password, written down<\/h3>\n    <p>Make one up now and keep it somewhere safe. Avoid quotation marks and spaces in it; they make the commands below harder to type. You will paste it into the Portal at the end.<\/p>\n  <\/div>\n<\/div>\n\n<h2 id=\"pick\">Pick your database<\/h2>\n<ul>\n  <li><a href=\"#sql-server\">Microsoft SQL Server<\/a> (including SQL Express)<\/li>\n  <li><a href=\"#postgresql\">PostgreSQL<\/a><\/li>\n  <li><a href=\"#mysql-mariadb\">MySQL and MariaDB<\/a> (including cPanel and WordPress)<\/li>\n  <li><a href=\"#oracle\">Oracle<\/a>, <a href=\"#snowflake\">Snowflake<\/a> or <a href=\"#bigquery\">Google BigQuery<\/a><\/li>\n<\/ul>\n<p>In every command below, replace <strong>qs_reader<\/strong> if you want a different name, replace <strong>ChangeMe-2026!<\/strong> with your own password, and replace <strong>Sales<\/strong> with the name of your own database.<\/p>\n\n<h3 id=\"sql-server\">Microsoft SQL Server<\/h3>\n<p>The Portal&rsquo;s SQL Server connector signs in with a SQL Server login (a name and a password), not with your Windows account. Many SQL Server and SQL Express installs only accept Windows accounts until you switch one setting, so the first two steps check that. Then you create the login, either by typing or by clicking.<\/p>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>Not comfortable with this?<\/strong> Ask whoever looks after your database (often the company that supplied your accounting or till software), or <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to support<\/a> and we will do it with you.<\/p><\/div>\n<ol class=\"qs-d-steps\" data-qs-seen=\"sql-server\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"ss-1\">\n    <h3>Open SQL Server Management Studio<\/h3>\n    <p>On the computer that runs SQL Server (or any computer that has <strong>SQL Server Management Studio<\/strong>, SSMS for short), click <strong>Start<\/strong>, type <strong>SSMS<\/strong> and open it. A box titled <strong>Connect to Server<\/strong> appears. Leave <strong>Authentication<\/strong> on <strong>Windows Authentication<\/strong> and click <strong>Connect<\/strong>.<\/p>\n    <p>A panel called <strong>Object Explorer<\/strong> fills the left side, with your server&rsquo;s name at the top and folders such as <strong>Databases<\/strong> and <strong>Security<\/strong> under it. If instead you see an error that mentions a <strong>certificate chain<\/strong> or <strong>not trusted<\/strong>, go back to the Connect box, tick <strong>Trust Server Certificate<\/strong>, and click <strong>Connect<\/strong> again.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"ss-2\">\n    <h3>Turn on SQL Server logins (the Windows-only trap)<\/h3>\n    <p>In Object Explorer, right-click the server name at the very top and choose <strong>Properties<\/strong>. In the list on the left of the window that opens, click <strong>Security<\/strong>. Under <strong>Server authentication<\/strong> there are two choices.<\/p>\n    <p>If <strong>SQL Server and Windows Authentication mode<\/strong> is already selected, click <strong>Cancel<\/strong> and go to step 3. If <strong>Windows Authentication mode<\/strong> is selected, click <strong>SQL Server and Windows Authentication mode<\/strong>, then <strong>OK<\/strong>. A message says the change takes effect after SQL Server restarts; click <strong>OK<\/strong>. Then right-click the server name again and choose <strong>Restart<\/strong>, and click <strong>Yes<\/strong> when asked. The icon by the server name turns grey and back to green in under a minute.<\/p>\n    <p>Why this matters: while the server is on Windows-only, the Agent&rsquo;s test fails with <strong>Connection failed: Login failed for user &lsquo;qs_reader&rsquo;.<\/strong> That is exactly the message you would get for a wrong password, so people retype the password again and again. If you are sure of the password, this setting is the reason.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"ss-3\">\n    <h3>Open a query window<\/h3>\n    <p>Click the <strong>New Query<\/strong> button on the toolbar near the top. A blank white page opens in the middle. That is where you paste. (Prefer clicking to typing? Skip to <a href=\"#ss-gui\">the click-through version<\/a> below.)<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"ss-4\">\n    <h3>Paste the commands and run them<\/h3>\n    <p>Copy the block below, paste it into the query window, change the password and the database name (<strong>Sales<\/strong> appears twice), then click <strong>Execute<\/strong> on the toolbar or press <strong>F5<\/strong>:<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Paste into the query window, then press F5<\/div>\n<pre class=\"qs-d-code__body\">CREATE LOGIN qs_reader WITH PASSWORD = 'ChangeMe-2026!', CHECK_EXPIRATION = OFF;\nGO\nUSE Sales;\nGO\nCREATE USER qs_reader FOR LOGIN qs_reader;\nALTER ROLE db_datareader ADD MEMBER qs_reader;\nGO<\/pre><\/div>\n    <p>The <strong>Messages<\/strong> tab at the bottom says <strong>Commands completed successfully.<\/strong> If it says the password <strong>does not meet the operating system policy<\/strong>, pick a longer password with a mix of letters, numbers and a symbol, and run it again. If it says <strong>Database &lsquo;Sales&rsquo; does not exist<\/strong>, expand <strong>Databases<\/strong> in Object Explorer to see the real name and change both <strong>Sales<\/strong> lines.<\/p>\n    <p>Want the Agent to read more than one database? Run the last three lines again for each one, with its name in place of <strong>Sales<\/strong>.<\/p>\n  <\/li>\n<\/ol>\n<p id=\"ss-gui\"><strong>The click-through version.<\/strong> Instead of steps 3 and 4: in Object Explorer, expand <strong>Security<\/strong>, right-click <strong>Logins<\/strong>, choose <strong>New Login&hellip;<\/strong>. On the <strong>General<\/strong> page type <strong>qs_reader<\/strong> in <strong>Login name<\/strong>, choose <strong>SQL Server authentication<\/strong>, type the password in <strong>Password<\/strong> and <strong>Confirm password<\/strong>, and <strong>untick User must change password at next login<\/strong> (the Agent cannot change a password, so with this ticked it never gets in). Then click <strong>User Mapping<\/strong> on the left. Under <strong>Users mapped to this login<\/strong>, tick the box beside your database. In the lower box, <strong>Database role membership for<\/strong>, tick <strong>db_datareader<\/strong> and leave <strong>public<\/strong> ticked. Click <strong>OK<\/strong>. The new name appears under <strong>Security &rarr; Logins<\/strong>.<\/p>\n<p id=\"ss-firewall\"><strong>Agent on a different computer from SQL Server?<\/strong> Port <strong>1433<\/strong> (or the instance&rsquo;s own port, plus UDP 1434 for a named instance such as SQLEXPRESS) has to be open on the SQL Server computer: <a href=\"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/#sql-server\" data-qs-cta=\"related\">open a firewall port on Windows<\/a>.<\/p>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>If any of this does not match what you see, stop and <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to our support email<\/a> with a photo of the screen. We will walk you through it.<\/p><\/div>\n\n<h3 id=\"postgresql\">PostgreSQL<\/h3>\n<p>Three parts: create the login, then make sure PostgreSQL accepts connections from the Agent&rsquo;s computer, which it does not out of the box. If the Agent runs on the same computer as PostgreSQL and you will type <strong>localhost<\/strong> as the server, you only need part one.<\/p>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>Not comfortable with this?<\/strong> Ask whoever looks after your database or server, or <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to support<\/a> and we will do it with you.<\/p><\/div>\n<ol class=\"qs-d-steps\" data-qs-seen=\"postgresql\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"pg-1\">\n    <h3>Open a query window as the postgres user<\/h3>\n    <p><strong>With pgAdmin<\/strong> (installed alongside PostgreSQL on Windows): open <strong>pgAdmin<\/strong>, expand <strong>Servers<\/strong> on the left, enter the <strong>postgres<\/strong> password you chose when PostgreSQL was installed, expand <strong>Databases<\/strong>, click your database once, then choose <strong>Tools &rarr; Query Tool<\/strong>. A blank editor opens.<\/p>\n    <p><strong>On a Linux server<\/strong>, type this and press <strong>Enter<\/strong>; the prompt changes to <strong>sales=#<\/strong>:<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Type this, then press Enter<\/div>\n<pre class=\"qs-d-code__body\">sudo -u postgres psql -d sales<\/pre><\/div>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"pg-2\">\n    <h3>Create the login and give it read access<\/h3>\n    <p>Paste the block below, change the password and <strong>sales<\/strong>, and run it (in pgAdmin press <strong>F5<\/strong>; in psql press <strong>Enter<\/strong>). If your tables are not in the <strong>public<\/strong> schema, change <strong>public<\/strong> too, or repeat the last three lines for each schema.<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Paste, then run<\/div>\n<pre class=\"qs-d-code__body\">CREATE ROLE qs_reader LOGIN PASSWORD 'ChangeMe-2026!';\nGRANT CONNECT ON DATABASE sales TO qs_reader;\nGRANT USAGE ON SCHEMA public TO qs_reader;\nGRANT SELECT ON ALL TABLES IN SCHEMA public TO qs_reader;\nALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO qs_reader;<\/pre><\/div>\n    <p>You see <strong>CREATE ROLE<\/strong>, then <strong>GRANT<\/strong> three times and <strong>ALTER DEFAULT PRIVILEGES<\/strong>. The last line makes tables created later readable too, but only tables created by the user who ran it; if your application creates tables as its own user, run that line while signed in as that user. If you see <strong>database &quot;sales&quot; does not exist<\/strong>, use the name exactly as pgAdmin lists it; if it contains capital letters, put it in double quotation marks, like <strong>&quot;Sales&quot;<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"pg-3\">\n    <h3>Find PostgreSQL&rsquo;s two settings files<\/h3>\n    <p>Still in the query window, run these two lines one at a time:<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Run each, note the answer<\/div>\n<pre class=\"qs-d-code__body\">SHOW config_file;\nSHOW hba_file;<\/pre><\/div>\n    <p>Each answers with a full path. On Windows they are usually in <strong>C:\\Program Files\\PostgreSQL\\17\\data\\<\/strong> (the number is your version); on Ubuntu or Debian, <strong>\/etc\/postgresql\/17\/main\/<\/strong>. The first file is <strong>postgresql.conf<\/strong>, the second <strong>pg_hba.conf<\/strong>. Write both paths down.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"pg-4\">\n    <h3>Let PostgreSQL listen to the network<\/h3>\n    <p>Open <strong>postgresql.conf<\/strong> in a text editor. On Windows: click <strong>Start<\/strong>, type <strong>Notepad<\/strong>, right-click it and choose <strong>Run as administrator<\/strong>, then <strong>File &rarr; Open<\/strong>, paste the path, and change the file type box at the bottom right to <strong>All Files<\/strong>. On Linux: <strong>sudo nano<\/strong> followed by the path.<\/p>\n    <p>Find the line that starts <strong>listen_addresses<\/strong> (Notepad: press <strong>Ctrl<\/strong> and <strong>F<\/strong> together). If it reads <strong>listen_addresses = &#39;*&#39;<\/strong>, leave it. If it reads <strong>&#39;localhost&#39;<\/strong> or starts with a <strong>#<\/strong>, replace the whole line with:<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">The line in postgresql.conf<\/div>\n<pre class=\"qs-d-code__body\">listen_addresses = '*'<\/pre><\/div>\n    <p>Save the file. Nothing changes yet; this setting is only read when PostgreSQL restarts (step 6).<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"5\" id=\"pg-5\">\n    <h3>Allow the Agent&rsquo;s computer in pg_hba.conf<\/h3>\n    <p>First find the Agent computer&rsquo;s address: on that computer click <strong>Start<\/strong>, type <strong>cmd<\/strong>, open <strong>Command Prompt<\/strong>, type <strong>ipconfig<\/strong> and press <strong>Enter<\/strong>. The line <strong>IPv4 Address<\/strong> shows something like <strong>192.168.1.25<\/strong>.<\/p>\n    <p>Open <strong>pg_hba.conf<\/strong> the same way as the last file. At the bottom are lines starting <strong>host<\/strong>. Look at the last word on those lines, usually <strong>scram-sha-256<\/strong> (older servers say <strong>md5<\/strong>), and add this line at the very end, using that same last word and the Agent&rsquo;s address with <strong>\/32<\/strong> after it:<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Add at the end of pg_hba.conf<\/div>\n<pre class=\"qs-d-code__body\">host    all    qs_reader    192.168.1.25\/32    scram-sha-256<\/pre><\/div>\n    <p>Save the file. To allow any computer on that office network instead of one, write <strong>192.168.1.0\/24<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"6\" id=\"pg-6\">\n    <h3>Restart PostgreSQL<\/h3>\n    <p><strong>Windows:<\/strong> click <strong>Start<\/strong>, type <strong>Services<\/strong>, open the <strong>Services<\/strong> app, find the entry whose name starts with <strong>postgresql-x64-<\/strong>, right-click it and choose <strong>Restart<\/strong>. Its <strong>Status<\/strong> column blinks and shows <strong>Running<\/strong> again. <strong>Linux:<\/strong> type the line below; it prints nothing when it works.<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Linux: type this, then press Enter<\/div>\n<pre class=\"qs-d-code__body\">sudo systemctl restart postgresql<\/pre><\/div>\n    <p>If PostgreSQL does not come back (Status stays blank, or the command prints <strong>failed<\/strong>), a typo crept into one of the two files. Open them again, compare with the lines above, save, and restart again. Port <strong>5432<\/strong> also has to be open in the server&rsquo;s firewall: <a href=\"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/#postgresql\" data-qs-cta=\"related\">open a firewall port on Windows<\/a>.<\/p>\n  <\/li>\n<\/ol>\n<p id=\"pg-ssl\"><strong>The Use SSL tick box.<\/strong> The Portal&rsquo;s PostgreSQL connector has <strong>Use SSL<\/strong> ticked by default, and with it ticked the Agent insists on an encrypted connection. A PostgreSQL installed on Windows usually has encryption switched off, so the test fails with <strong>Connection failed: SSL connection requested. No SSL enabled connection from this host is configured.<\/strong> That message means: untick <strong>Use SSL<\/strong> and test again. Leave it ticked for any database in the cloud.<\/p>\n<p id=\"pg-hba-symptom\"><strong>What a missing pg_hba.conf line looks like today.<\/strong> You might expect a clear refusal. Instead, the Portal shows an amber <strong>Signed in<\/strong> with <strong>No database opened yet. Name it on the next step.<\/strong> and the Agent&rsquo;s message <strong>Login succeeded, but no database could be opened (tried postgres, template1). Enter the database name.<\/strong> If you then type your database name, it says <strong>This login can&rsquo;t open database &lsquo;sales&rsquo;.<\/strong> Despite the words &ldquo;Login succeeded&rdquo;, this is almost always pg_hba.conf turning the Agent away: go back to <a href=\"#pg-5\">step 5<\/a>. We are fixing the message so it says so.<\/p>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>If any of this does not match what you see, stop and <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to our support email<\/a> with a photo of the screen. We will walk you through it.<\/p><\/div>\n\n<h3 id=\"mysql-mariadb\">MySQL and MariaDB<\/h3>\n<p>MySQL and MariaDB use the same commands. One thing surprises everybody: a MySQL user belongs to a place. <strong>&#39;qs_reader&#39;@&#39;localhost&#39;<\/strong> can only sign in from the database computer itself; the same name and password from the Agent&rsquo;s computer is refused. The part after the <strong>@<\/strong> has to match where the Agent is.<\/p>\n<table class=\"qs-d-table\">\n  <thead><tr><th>Write after the @<\/th><th>Who can sign in<\/th><th>Use it when<\/th><\/tr><\/thead>\n  <tbody>\n    <tr><td><strong>&#39;%&#39;<\/strong><\/td><td>Any computer<\/td><td>Simplest. The password is still required.<\/td><\/tr>\n    <tr><td><strong>&#39;192.168.1.%&#39;<\/strong><\/td><td>Computers on that office network<\/td><td>The Agent is on the same network as the database.<\/td><\/tr>\n    <tr><td><strong>&#39;192.168.1.25&#39;<\/strong><\/td><td>Only that one address<\/td><td>You know the Agent computer&rsquo;s address (<strong>ipconfig<\/strong>, as in the PostgreSQL steps).<\/td><\/tr>\n    <tr><td><strong>&#39;localhost&#39;<\/strong><\/td><td>Only the database computer<\/td><td>The Agent runs on the database computer and you type <strong>localhost<\/strong> as the server.<\/td><\/tr>\n  <\/tbody>\n<\/table>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>Not comfortable with this?<\/strong> Ask whoever looks after your database or website, or <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to support<\/a> and we will do it with you. On a web host, skip to <a href=\"#my-cpanel\">the cPanel route<\/a>.<\/p><\/div>\n<ol class=\"qs-d-steps\" data-qs-seen=\"mysql-mariadb\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"my-1\">\n    <h3>Open a query window as an administrator<\/h3>\n    <p><strong>MySQL Workbench<\/strong>: open it, click your server under <strong>MySQL Connections<\/strong>, enter the <strong>root<\/strong> password; a query tab opens. <strong>On a Linux server<\/strong>: type <strong>sudo mysql<\/strong> and press <strong>Enter<\/strong>; the prompt changes to <strong>mysql&gt;<\/strong> or <strong>MariaDB [(none)]&gt;<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"my-2\">\n    <h3>Create the user and allow SELECT only<\/h3>\n    <p>Paste the block below, change the password, the database name (<strong>shop<\/strong>) and the part after the <strong>@<\/strong> if you chose something other than <strong>&#39;%&#39;<\/strong> (it appears twice), and run it (Workbench: the lightning-bolt button; command line: <strong>Enter<\/strong>):<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Paste, then run<\/div>\n<pre class=\"qs-d-code__body\">CREATE USER 'qs_reader'@'%' IDENTIFIED BY 'ChangeMe-2026!';\nGRANT SELECT ON shop.* TO 'qs_reader'@'%';\nFLUSH PRIVILEGES;<\/pre><\/div>\n    <p>Each line answers <strong>Query OK<\/strong>. To let it read every database on the server, write <strong>*.*<\/strong> instead of <strong>shop.*<\/strong>. If it says <strong>Operation CREATE USER failed<\/strong>, a user of that name and place already exists: pick another name, or ask whoever set it up.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"my-3\">\n    <h3>Let the server listen to the network<\/h3>\n    <p>On Ubuntu and Debian, MySQL and MariaDB only listen to the database computer itself until you change <strong>bind-address<\/strong>. Open the settings file (<strong>sudo nano<\/strong> and the path):<\/p>\n    <dl class=\"qs-d-kv\">\n      <dt>MySQL on Ubuntu\/Debian<\/dt><dd><strong>\/etc\/mysql\/mysql.conf.d\/mysqld.cnf<\/strong><\/dd>\n      <dt>MariaDB on Ubuntu\/Debian<\/dt><dd><strong>\/etc\/mysql\/mariadb.conf.d\/50-server.cnf<\/strong><\/dd>\n      <dt>MySQL on Windows<\/dt><dd><strong>my.ini<\/strong> in <strong>C:\\ProgramData\\MySQL\\MySQL Server 8.0\\<\/strong> (ProgramData is hidden: paste the path into File Explorer&rsquo;s address bar)<\/dd>\n    <\/dl>\n    <p>Find the line <strong>bind-address = 127.0.0.1<\/strong>. Change it to the line below and save. On Windows there is usually no such line, which means it already listens; leave the file alone.<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">The line in the settings file<\/div>\n<pre class=\"qs-d-code__body\">bind-address = 0.0.0.0<\/pre><\/div>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"my-4\">\n    <h3>Restart the database<\/h3>\n    <p><strong>Linux:<\/strong> type <strong>sudo systemctl restart mysql<\/strong> (or <strong>sudo systemctl restart mariadb<\/strong>) and press <strong>Enter<\/strong>; it prints nothing when it works. <strong>Windows:<\/strong> in the <strong>Services<\/strong> app right-click <strong>MySQL80<\/strong> (or <strong>MariaDB<\/strong>) and choose <strong>Restart<\/strong>. Port <strong>3306<\/strong> also has to be open in the server&rsquo;s firewall: <a href=\"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/#mysql\" data-qs-cta=\"related\">open a firewall port on Windows<\/a>.<\/p>\n  <\/li>\n<\/ol>\n<p id=\"my-ssl\"><strong>The Use SSL tick box and the RSA message.<\/strong> The Portal&rsquo;s MySQL and MariaDB connectors have <strong>Use SSL<\/strong> ticked by default. A MariaDB without encryption set up fails with <strong>Connection failed: Server does not support SSL<\/strong>: untick <strong>Use SSL<\/strong> and test again. On MySQL 8 or later, keep it ticked. MySQL creates its own certificate, and unticking it leads to <strong>Connection failed: Authentication method &#39;caching_sha2_password&#39; failed. Either use a secure connection, specify the server&#39;s RSA public key with ServerRSAPublicKeyFile, or set AllowPublicKeyRetrieval=True.<\/strong> The Agent cannot do the last two today, so the answer is to tick <strong>Use SSL<\/strong> again. (Switching the user to the older <strong>mysql_native_password<\/strong> method also works on MySQL 8.0, but MySQL 8.4 switches that method off by default and MySQL 9 removed it, so we do not recommend it.)<\/p>\n\n<p id=\"my-cpanel\"><strong>The cPanel route (most web hosts).<\/strong> In cPanel the Databases section has two pages you need. Older cPanel calls them <strong>MySQL Databases<\/strong> and <strong>Remote MySQL<\/strong>; cPanel 120 and later calls them <strong>Manage My Databases<\/strong> and <strong>Remote Database Access<\/strong>.<\/p>\n<ol class=\"qs-d-steps\" data-qs-seen=\"mysql-cpanel\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"cp-1\">\n    <h3>Create the user<\/h3>\n    <p>Open <strong>Manage My Databases<\/strong> (or <strong>MySQL Databases<\/strong>). Under <strong>Add a user<\/strong>, type <strong>qs_reader<\/strong> in <strong>Username<\/strong>, type the password in both password boxes, and click <strong>Create User<\/strong>. cPanel puts your account name in front, so the real username becomes something like <strong>myaccount_qs_reader<\/strong>. Write that full name down; it is what goes in the Portal.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"cp-2\">\n    <h3>Give it SELECT on your database, nothing else<\/h3>\n    <p>Under <strong>Add User To Database<\/strong>, pick the new user and your database in the two menus and click <strong>Add<\/strong>. A page of privilege tick boxes opens (<strong>MySQL Account Maintenance<\/strong>). Do <strong>not<\/strong> tick <strong>ALL PRIVILEGES<\/strong>. Tick only <strong>SELECT<\/strong>, then click <strong>Make Changes<\/strong>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"cp-3\">\n    <h3>Allow the Agent&rsquo;s address<\/h3>\n    <p>On the Agent&rsquo;s computer, open a browser and search for <strong>what is my IP<\/strong>; note the address it shows (this is the office&rsquo;s public address, not the 192.168 one). In cPanel open <strong>Remote Database Access<\/strong> (or <strong>Remote MySQL<\/strong>), type that address in <strong>Host<\/strong>, add a <strong>Comment<\/strong> such as <strong>Query Streams Agent<\/strong>, and click <strong>Add Host<\/strong>. If you do not see this page at all, your host has switched it off; ask them, or install the Agent on the hosting server if they allow it.<\/p>\n  <\/li>\n<\/ol>\n<p id=\"my-wordpress\"><strong>WordPress sites.<\/strong> The database name, server and login are in the site&rsquo;s <strong>wp-config.php<\/strong> file, on the lines <strong>DB_NAME<\/strong>, <strong>DB_HOST<\/strong>, <strong>DB_USER<\/strong> and <strong>DB_PASSWORD<\/strong>. Use <strong>DB_NAME<\/strong> and <strong>DB_HOST<\/strong> from there, but do not give the Agent that <strong>DB_USER<\/strong>: it is the account WordPress itself writes with. Make the separate read-only user above instead.<\/p>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>If any of this does not match what you see, stop and <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to our support email<\/a> with a photo of the screen. We will walk you through it.<\/p><\/div>\n\n<h3 id=\"oracle\">Oracle<\/h3>\n<p>Run this as a DBA (for example <strong>SYSTEM<\/strong>) in SQL Developer or SQL*Plus, connected to the pluggable database that holds your tables (on Oracle XE that is <strong>XEPDB1<\/strong>, on Oracle Free <strong>FREEPDB1<\/strong>). Replace <strong>SALES.ORDERS<\/strong> with each table the Agent should read, one GRANT line per table.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Run as a DBA<\/div>\n<pre class=\"qs-d-code__body\">CREATE USER qs_reader IDENTIFIED BY \"ChangeMe-2026!\";\nGRANT CREATE SESSION TO qs_reader;\nGRANT SELECT ON SALES.ORDERS TO qs_reader;<\/pre><\/div>\n<p>Each line answers <strong>User created<\/strong> or <strong>Grant succeeded<\/strong>. In the Portal, type the owner of the tables (here <strong>SALES<\/strong>, in capitals) in <strong>Default Schema<\/strong>. Left blank, it uses <strong>QS_READER<\/strong>, which owns no tables, and the test says <strong>Schema `QS_READER` doesn&rsquo;t exist or this login can&rsquo;t read any of its tables.<\/strong> Granting every table at once (<strong>READ ANY TABLE<\/strong>) covers every schema in the database, including system ones; ask your DBA before using it.<\/p>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>Not sure which database you are connected to? <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">Reply to our support email<\/a> with a photo of the screen.<\/p><\/div>\n\n<h3 id=\"snowflake\">Snowflake<\/h3>\n<p>In Snowsight, open a new SQL worksheet as a user with the <strong>SECURITYADMIN<\/strong> or <strong>ACCOUNTADMIN<\/strong> role and run the block below. Replace <strong>COMPUTE_WH<\/strong>, <strong>SALES<\/strong> and <strong>QS_USER<\/strong> (the Snowflake user the Agent signs in as) with your own names.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Run in a Snowsight worksheet<\/div>\n<pre class=\"qs-d-code__body\">CREATE ROLE QS_READER;\nGRANT USAGE ON WAREHOUSE COMPUTE_WH TO ROLE QS_READER;\nGRANT USAGE ON DATABASE SALES TO ROLE QS_READER;\nGRANT USAGE ON ALL SCHEMAS IN DATABASE SALES TO ROLE QS_READER;\nGRANT SELECT ON ALL TABLES IN DATABASE SALES TO ROLE QS_READER;\nGRANT SELECT ON FUTURE TABLES IN DATABASE SALES TO ROLE QS_READER;\nGRANT ROLE QS_READER TO USER QS_USER;<\/pre><\/div>\n<p>Each line answers <strong>Statement executed successfully.<\/strong> In the Portal, type <strong>QS_READER<\/strong> in <strong>Role<\/strong> and <strong>COMPUTE_WH<\/strong> in <strong>Warehouse<\/strong>. If a warehouse or role is missing a grant, the test says <strong>Invalid Warehouse<\/strong> or <strong>Invalid Role<\/strong>. The FUTURE line needs <strong>SECURITYADMIN<\/strong> or higher, and if a schema has its own future grants, Snowflake ignores this one for that schema.<\/p>\n\n<h3 id=\"bigquery\">Google BigQuery<\/h3>\n<p>BigQuery has no SQL logins. The Agent signs in as a Google Cloud <strong>service account<\/strong>, and two roles make it read-only:<\/p>\n<dl class=\"qs-d-kv\">\n  <dt>BigQuery Data Viewer<\/dt><dd>Reads tables and views. Give it on the project, or only on the datasets you want to share.<\/dd>\n  <dt>BigQuery Job User<\/dt><dd>Lets it run queries. Give it on the project. Without it the test says <strong>This service account can&rsquo;t run queries in project &hellip;<\/strong><\/dd>\n<\/dl>\n<p>In the Google Cloud console go to <strong>IAM &amp; Admin &rarr; IAM<\/strong>, find the service account (or click <strong>Grant access<\/strong> and paste its email address), and add both roles. Do not add <strong>BigQuery Data Editor<\/strong>, <strong>BigQuery Admin<\/strong>, <strong>Editor<\/strong> or <strong>Owner<\/strong>; any of those can change data. You then paste the account&rsquo;s JSON key into <strong>Service Account JSON Key<\/strong> in the Portal.<\/p>\n\n<h2 id=\"test-failed\">What the message means<\/h2>\n<p>After you click <strong>Test connection<\/strong> in Data Agents, the message under <strong>Connection failed<\/strong> (or under an amber <strong>Signed in<\/strong>) is the Agent&rsquo;s own words. Test connection runs on the Agent&rsquo;s computer, so it needs the Agent online first: <a href=\"https:\/\/querystreams.com\/docs\/is-the-agent-online\/\" data-qs-cta=\"related\">Is the Agent online?<\/a> Then find your message:<\/p>\n<table class=\"qs-d-table\">\n  <thead><tr><th>Message<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead>\n  <tbody>\n    <tr><td><strong>Connection failed: Login failed for user &lsquo;qs_reader&rsquo;.<\/strong> (SQL Server)<\/td><td>Wrong password, the login does not exist, or the server only accepts Windows accounts. The message is the same for all three.<\/td><td>Check <a href=\"#ss-2\">Windows-only<\/a> first if you are sure of the password; then <a href=\"#ss-4\">create the login<\/a>.<\/td><\/tr>\n    <tr><td><strong>Cannot open database &hellip; requested by the login. The login failed.<\/strong> (SQL Server)<\/td><td>The login exists but has no user in that database.<\/td><td>Run the last three lines of <a href=\"#ss-4\">step 4<\/a> for that database.<\/td><\/tr>\n    <tr><td><strong>Signed in, but this login&rsquo;s default database can&rsquo;t be opened. Enter your database.<\/strong> (SQL Server)<\/td><td>The login works, but it cannot open its default database.<\/td><td>Pick your database on the next step, and make sure <a href=\"#ss-4\">step 4<\/a> was run for it.<\/td><\/tr>\n    <tr><td><strong>Connection failed: 28P01: password authentication failed for user &quot;qs_reader&quot;<\/strong> (PostgreSQL)<\/td><td>Wrong password, or the role was created without <strong>LOGIN<\/strong>.<\/td><td>Re-run <a href=\"#pg-2\">step 2<\/a>, or reset it with <strong>ALTER ROLE qs_reader PASSWORD &#39;&hellip;&#39;;<\/strong><\/td><\/tr>\n    <tr><td><strong>Login succeeded, but no database could be opened (tried postgres, template1). Enter the database name.<\/strong> (PostgreSQL)<\/td><td>Usually no <strong>pg_hba.conf<\/strong> line for the Agent&rsquo;s computer, despite the wording.<\/td><td><a href=\"#pg-5\">Add the pg_hba.conf line<\/a> and restart; <a href=\"#pg-hba-symptom\">why it says this<\/a>.<\/td><\/tr>\n    <tr><td><strong>This login can&rsquo;t open database &lsquo;sales&rsquo;.<\/strong> (PostgreSQL)<\/td><td>No <strong>GRANT CONNECT<\/strong>, or the pg_hba.conf line names another database.<\/td><td><a href=\"#pg-2\">Step 2<\/a>, then <a href=\"#pg-5\">step 5<\/a>.<\/td><\/tr>\n    <tr><td><strong>Connection failed: SSL connection requested. No SSL enabled connection from this host is configured.<\/strong> (PostgreSQL)<\/td><td>The server has no encryption; <strong>Use SSL<\/strong> is ticked.<\/td><td><a href=\"#pg-ssl\">Untick Use SSL<\/a>.<\/td><\/tr>\n    <tr><td><strong>Connection failed: Failed to connect to &hellip;:5432<\/strong> (PostgreSQL)<\/td><td>PostgreSQL is not listening to the network, a firewall blocks 5432, or it is stopped.<\/td><td><a href=\"#pg-4\">listen_addresses<\/a>, <a href=\"#pg-6\">restart<\/a>, then <a href=\"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/#postgresql\" data-qs-cta=\"related\">the firewall<\/a>.<\/td><\/tr>\n    <tr><td><strong>Access denied for user &#39;qs_reader&#39;@&#39;&hellip;&#39; (using password: YES)<\/strong> (MySQL\/MariaDB)<\/td><td>Wrong password, or the user exists only for another place (for example <strong>@&#39;localhost&#39;<\/strong>).<\/td><td>Check the <a href=\"#mysql-mariadb\">part after the @<\/a>; re-run <a href=\"#my-2\">step 2<\/a>.<\/td><\/tr>\n    <tr><td><strong>Host &#39;&hellip;&#39; is not allowed to connect to this MySQL server<\/strong> (MySQL\/MariaDB)<\/td><td>No user at all for the Agent&rsquo;s address; on a web host, the address is not in Remote MySQL.<\/td><td><a href=\"#my-2\">Create the user with &#39;%&#39;<\/a>, or <a href=\"#cp-3\">add the address in cPanel<\/a>.<\/td><\/tr>\n    <tr><td><strong>Connection failed: Unable to connect to any of the specified MySQL hosts.<\/strong> or <strong>Connection to MySQL server timed out after 15 seconds<\/strong><\/td><td>The server listens only to itself, a firewall blocks 3306, or it is stopped.<\/td><td><a href=\"#my-3\">bind-address<\/a>, <a href=\"#my-4\">restart<\/a>, then <a href=\"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/#mysql\" data-qs-cta=\"related\">the firewall<\/a>.<\/td><\/tr>\n    <tr><td><strong>Connection failed: Server does not support SSL<\/strong> (MySQL\/MariaDB)<\/td><td>No encryption on the server; <strong>Use SSL<\/strong> is ticked.<\/td><td><a href=\"#my-ssl\">Untick Use SSL<\/a>.<\/td><\/tr>\n    <tr><td><strong>Authentication method &#39;caching_sha2_password&#39; failed &hellip;<\/strong> (MySQL)<\/td><td><strong>Use SSL<\/strong> was unticked on MySQL 8 or later.<\/td><td><a href=\"#my-ssl\">Tick Use SSL again<\/a>.<\/td><\/tr>\n    <tr><td><strong>Connection failed: Invalid username\/password &#8211; check credentials<\/strong> (Oracle)<\/td><td>Wrong password (Oracle passwords are case-sensitive) or wrong user.<\/td><td><a href=\"#oracle\">Recreate or reset the user<\/a>.<\/td><\/tr>\n    <tr><td><strong>Schema `&hellip;` doesn&rsquo;t exist or this login can&rsquo;t read any of its tables.<\/strong> (Oracle)<\/td><td><strong>Default Schema<\/strong> is blank or wrong, or no SELECT grant.<\/td><td><a href=\"#oracle\">Type the owner in Default Schema; add GRANT SELECT<\/a>.<\/td><\/tr>\n    <tr><td><strong>Connection failed: Invalid Role<\/strong> or <strong>Invalid Warehouse<\/strong> (Snowflake)<\/td><td>The role was not granted to the user, or has no USAGE on the warehouse.<\/td><td><a href=\"#snowflake\">Run the grants<\/a>; check the names in <strong>Role<\/strong> and <strong>Warehouse<\/strong>.<\/td><\/tr>\n    <tr><td><strong>Permission denied on project &hellip;<\/strong> or <strong>This service account can&rsquo;t run queries in project &hellip;<\/strong> (BigQuery)<\/td><td>Missing <strong>BigQuery Job User<\/strong>.<\/td><td><a href=\"#bigquery\">Add the role<\/a>.<\/td><\/tr>\n    <tr><td><strong>Dataset &hellip; wasn&rsquo;t found in project &hellip;, or this service account can&rsquo;t read it.<\/strong> (BigQuery)<\/td><td>Missing <strong>BigQuery Data Viewer<\/strong> on that dataset, or a typo.<\/td><td><a href=\"#bigquery\">Add the role<\/a>.<\/td><\/tr>\n    <tr><td><strong>Only SELECT queries are permitted in read-only mode.<\/strong> (later, when running a query)<\/td><td>The query tried to change something. The Agent stopped it before it reached the database.<\/td><td>Working as intended; see <a href=\"#why\">why<\/a>.<\/td><\/tr>\n  <\/tbody>\n<\/table>\n\n<h2 id=\"next\">Next: add the connection<\/h2>\n<p>Open <a href=\"https:\/\/my.querystreams.com\/data-agents\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"open_data_agents\"><strong>Data Agents<\/strong><\/a>, click <strong>Add connector<\/strong> on your Agent, pick your database, and type the new user&rsquo;s name and password into <strong>Username<\/strong> and <strong>Password<\/strong>. Then follow the guide for where you want the data:<\/p>\n<ul>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-microsoft-sql-server-to-excel\/\" data-qs-cta=\"related\">Microsoft SQL Server to Excel<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-postgresql-to-excel\/\" data-qs-cta=\"related\">PostgreSQL to Excel<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-mysql-to-microsoft-excel\/\" data-qs-cta=\"related\">MySQL to Excel<\/a> &middot; <a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-mariadb-to-microsoft-excel\/\" data-qs-cta=\"related\">MariaDB to Excel<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-oracle-to-excel\/\" data-qs-cta=\"related\">Oracle to Excel<\/a> &middot; <a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-snowflake-to-excel\/\" data-qs-cta=\"related\">Snowflake to Excel<\/a> &middot; <a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-bigquery-to-excel\/\" data-qs-cta=\"related\">BigQuery to Excel<\/a><\/li>\n<\/ul>\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\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\n<h2 id=\"related\">Related guides<\/h2>\n<ul class=\"qs-d-related\">\n  <li><a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-windows\/\" data-qs-cta=\"related\">Install the Agent on Windows<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/is-the-agent-online\/\" data-qs-cta=\"related\">Is the Agent online?<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/\" data-qs-cta=\"related\">Open a firewall port on Windows<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/microsoft-access-connector-setup\/\" data-qs-cta=\"related\">Set up the Microsoft Access connector<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/\" data-qs-cta=\"related\">All guides<\/a><\/li>\n<\/ul>\n<\/article>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"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":"default","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":[],"class_list":["post-7294","docs","type-docs","status-publish","hentry","doc_category-connector-setup"],"year_month":"2026-12","word_count":4334,"total_views":"53","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"systemz","author_nicename":"systemz","author_url":"https:\/\/querystreams.com\/fr\/author\/systemz\/"},"doc_category_info":[{"term_name":"Data Connector Setup","term_url":"https:\/\/querystreams.com\/fr\/docs-category\/connector-setup\/"}],"doc_tag_info":[],"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":"systemz","author_link":"https:\/\/querystreams.com\/fr\/author\/systemz\/"},"uagb_comment_info":0,"uagb_excerpt":null,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/docs\/7294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/comments?post=7294"}],"version-history":[{"count":1,"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/docs\/7294\/revisions"}],"predecessor-version":[{"id":7299,"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/docs\/7294\/revisions\/7299"}],"wp:attachment":[{"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/media?parent=7294"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/doc_category?post=7294"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/querystreams.com\/fr\/wp-json\/wp\/v2\/doc_tag?post=7294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}