{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["availability","callout","img","partial","faq","faq-item"]},"type":"markdown","userRole":"Users, Editors, and Admins","accountType":"All accounts","plan":"Exclusive to select subscription plans"},"seo":{"title":"Integrate MariaDB with Databox","description":"Pull data from your MariaDB database into Databox, write custom SQL queries, and combine results with metrics from your other tools.","siteUrl":"https://help.databox.com","llmstxt":{"title":"Databox Knowledge Base","description":"Databox is a business analytics platform that consolidates data in one place, enabling real-time performance tracking and insights by mixing and matching data from various sources for a comprehensive view.","details":{"content":"This knowledge base covers everything from account setup and integrations to building Databoards, creating custom metrics, and using AI-powered features."},"sections":[{"title":"General","includeFiles":["docs/general/*.md","docs/general/visualization-types/*.md","docs/general/templates/*.md"],"excludeFiles":[]},{"title":"AI","includeFiles":["docs/ai/*.md"],"excludeFiles":[]},{"title":"Account Management","includeFiles":["docs/account-management/**/*.md"],"excludeFiles":[]},{"title":"Databoards","includeFiles":["docs/databoards/**/*.md"],"excludeFiles":[]},{"title":"Data Management","includeFiles":["docs/data-management/**/*.md"],"excludeFiles":[]},{"title":"Metrics","includeFiles":["docs/metrics/**/*.md"],"excludeFiles":[]},{"title":"Forecasts","includeFiles":["docs/forecasts/*.md"],"excludeFiles":[]},{"title":"Goals","includeFiles":["docs/goals/*.md"],"excludeFiles":[]},{"title":"Reports","includeFiles":["docs/reports/*.md"],"excludeFiles":[]},{"title":"Notifications","includeFiles":["docs/notifications/*.md"],"excludeFiles":[]},{"title":"Pricing and Billing","includeFiles":["docs/pricing-and-billing/*.md"],"excludeFiles":[]},{"title":"Mobile","includeFiles":["docs/mobile/*.md"],"excludeFiles":[]},{"title":"Support","includeFiles":["docs/support/*.md"],"excludeFiles":[]},{"title":"Integrations","includeFiles":["docs/integrations/**/*.md"],"excludeFiles":[]}],"hide":false,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"integrate-mariadb-with-databox","__idx":0},"children":["Integrate MariaDB with Databox"]},{"$$mdtype":"Tag","name":"Availability","attributes":{"users":"users","accounts":"all","plans":"exclusive"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MariaDB is an open-source relational database management system and a community-maintained fork of MySQL, created by MySQL's original developers. It is wire-compatible with MySQL and is commonly self-hosted on Linux servers or deployed through cloud platforms such as AWS, Google Cloud, and DigitalOcean. Connecting MariaDB to Databox lets you pull data directly from your database, build datasets using SQL queries, and visualize business-critical figures alongside data from your other connected tools."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connection","__idx":1},"children":["Connection"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you've already established a connection, you can ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/add-a-data-source"},"children":["reuse"]}," it to add new data sources to your Databox account."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-1-create-a-read-only-mariadb-user-for-databox","__idx":2},"children":["Step 1: Create a read-only MariaDB user for Databox"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Databox only reads data from your database — it never writes to it. Create a dedicated user with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SELECT"]},"-only privileges scoped to the Databox IP address. Connect to your MariaDB server as an administrative user and run the following commands."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"CREATE USER 'databox'@'52.4.198.118' IDENTIFIED BY 'your_secure_password';\nGRANT SELECT ON your_database.* TO 'databox'@'52.4.198.118';\nFLUSH PRIVILEGES;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["your_database"]}," with the name of the database you want to connect, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["your_secure_password"]}," with a strong password. If you need to grant access to multiple databases, repeat the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GRANT"]}," statement for each one."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Callout","attributes":{"type":"note"},"children":["Avoid the following special characters in your password, as they can cause encoding issues when establishing the connection: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["`"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\"]},", and spaces."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-2-allow-remote-connections-on-your-mariadb-server","__idx":3},"children":["Step 2: Allow remote connections on your MariaDB server"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["By default, MariaDB binds only to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["127.0.0.1"]}," and does not accept connections from remote hosts. To allow Databox to connect, update the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bind-address"]}," setting in your MariaDB configuration file."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open your MariaDB configuration file. The location varies by distribution:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Debian/Ubuntu: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/etc/mysql/mariadb.conf.d/50-server.cnf"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["RHEL/CentOS/Fedora: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/etc/my.cnf"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/etc/my.cnf.d/mariadb-server.cnf"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Find the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bind-address"]}," line and change its value:",{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ini","header":{"controls":{"copy":{}}},"source":"bind-address = 0.0.0.0\n","lang":"ini"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Save the file and restart MariaDB:",{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sudo systemctl restart mariadb\n","lang":"bash"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Callout","attributes":{"type":"tip"},"children":["If you prefer not to change ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bind-address"]}," globally, you can set it to your server's specific public IP address instead of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0.0.0.0"]},". Databox will still be able to connect as long as the IP is reachable and the firewall rule from ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#step-3-open-port-3306-in-your-server-firewall"},"children":["Step 3"]}," is in place."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-3-open-port-3306-in-your-server-firewall","__idx":4},"children":["Step 3: Open port 3306 in your server firewall"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Allow inbound TCP traffic on port ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3306"]}," from the Databox IP address. The command depends on which firewall tool your server uses."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["UFW (Debian/Ubuntu):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sudo ufw allow from 52.4.198.118 to any port 3306 proto tcp\nsudo ufw reload\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["firewalld (RHEL/CentOS/Fedora):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sudo firewall-cmd --permanent --add-rich-rule='rule family=\"ipv4\" source address=\"52.4.198.118/32\" port protocol=\"tcp\" port=\"3306\" accept'\nsudo firewall-cmd --reload\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["iptables:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sudo iptables -A INPUT -p tcp -s 52.4.198.118 --dport 3306 -j ACCEPT\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Callout","attributes":{"type":"note"},"children":["If your server runs on a cloud provider (AWS, Google Cloud, Azure, DigitalOcean, etc.), you must also open port ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3306"]}," in the provider's network-level firewall — such as a VPC security group, firewall rule, or network access control list — in addition to the OS-level firewall above."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-4-enter-your-mariadb-connection-details-in-databox","__idx":5},"children":["Step 4: Enter your MariaDB connection details in Databox"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In Databox, go to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Sources > + New connection"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Search for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MariaDB"]}," and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connect"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Fill in the connection form:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data source name"]}," — a label for this connection in Databox."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Host"]}," — the public IP address or hostname of your MariaDB server (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["203.0.113.42"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["db.example.com"]},")."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Port"]}," — the port MariaDB listens on. The default is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3306"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User"]}," — the MariaDB username created in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#step-1-create-a-read-only-mariadb-user-for-databox"},"children":["Step 1"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Password"]}," — the password for that user."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database name"]}," (optional) — the specific database to connect to. Leave blank to connect at the server level."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timezone"]}," — the time zone used to interpret date values in query results. Defaults to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Etc/UTC"]},"."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select an ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SSL/TLS mode"]}," (see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#ssltls"},"children":["SSL/TLS"]}," below)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connect"]},"."]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/integrate-mariadb-with-databox_1.4e8f0ebbeba934ba88997f06afadeef7b674f100d865ab632a972c4cbe38876e.4783b0ec.png","alt":"connect","withLightbox":true,"className":"ss-img"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ssltls","__idx":6},"children":["SSL/TLS"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Databox offers three SSL/TLS modes when connecting to a database. Choose the one that matches your server's configuration."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"class":"table-header-col","className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Mode"},"children":["Mode"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The connection is made without SSL/TLS encryption. Use this only when your server does not have SSL enabled."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Use SSL/TLS with provider CA bundle"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The connection uses SSL/TLS and authenticates the server using a regional CA bundle managed by your cloud provider (for example, Amazon RDS). When you check ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Verify server certificate using regional CA bundle"]},", an additional ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CA certificate bundle (ssl-ca)"]}," field appears, where you can paste your provider's CA certificate."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Use SSL/TLS with custom certificates"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The connection uses SSL/TLS with certificates you supply directly. When ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Verify server certificate"]}," is checked, you must provide a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CA certificate (ssl-ca)"]},". You may also supply a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client certificate (ssl-cert)"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client private key (ssl-key)"]}," for mutual TLS. If ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Verify server certificate"]}," is unchecked, only the client certificate and private key fields are shown."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MariaDB supports SSL/TLS connections using certificates you manage on the server. To use SSL with server certificate verification, copy the contents of the CA certificate used to sign your MariaDB server's certificate and paste it into the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CA certificate bundle (ssl-ca)"]}," field in Databox. On a self-managed server, the CA certificate is typically located at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/etc/mysql/ssl/ca-cert.pem"]}," or a path configured in your MariaDB server settings. For step-by-step instructions on configuring each SSL mode, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/enable-ssl-tls-for-your-database-connection"},"children":["Enable SSL/TLS for your database connection"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"datasets","__idx":7},"children":["Datasets"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The MariaDB integration supports the creation of ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/understanding-datasets"},"children":["datasets"]},", which allow you to define and shape the specific data you want to use for reporting in Databox. Datasets make it easier to focus on the most relevant information, enabling you to filter, visualize, and analyze metrics across projects, teams, and clients without writing complex queries each time."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"steps-to-create-a-dataset","__idx":8},"children":["Steps to create a dataset"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select a table"]},": Pick the appropriate schema within that database."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select columns"]},": Browse and select the specific columns (fields) from your tables or views to include in your dataset. These columns define the structure and content of your dataset."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"optional-write-sql","__idx":9},"children":["Optional: Write SQL"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For more advanced use cases, you can write a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["custom SQL query"]}," instead of selecting columns manually. This allows you to:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Join multiple tables"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Apply filters and aggregations"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Format or transform data before importing it into Databox"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your query must return a valid tabular result to be used as a dataset."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"additional-resources","__idx":10},"children":["Additional resources"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://mariadb.com/kb/en/documentation/"},"children":["MariaDB documentation"]}," — Official MariaDB Knowledge Base, covering installation, configuration, user management, replication, storage engines, and security."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://mariadb.com/kb/en/account-management-sql-commands/"},"children":["MariaDB account management"]}," — Reference for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CREATE USER"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GRANT"]},", and related SQL commands used to manage database users and privileges."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"resources","__idx":11},"children":["Resources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For comprehensive details on metrics, data availability, templates, specifications, usage guidelines, and other key information, refer to the resources listed below."]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":4,"cardMinWidth":240},"children":[{"$$mdtype":"Tag","name":"IntegrationResources","attributes":{"integrationKey":"mariadb","hideMetrics":true},"children":[]}]},{"$$mdtype":"Tag","name":"Faq","attributes":{},"children":[{"$$mdtype":"Tag","name":"FaqItem","attributes":{"question":"My server is hosted on a cloud provider — do I need to do anything extra?"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Yes. Cloud providers maintain a network-level firewall separate from your OS firewall. In addition to the OS-level firewall rule in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#step-3-open-port-3306-in-your-server-firewall"},"children":["Step 3"]},", you must add an inbound rule allowing TCP on port ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3306"]}," from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52.4.198.118"]}," in your provider's console — for example, an AWS VPC security group, a Google Cloud firewall rule, or an Azure network security group."]}]},{"$$mdtype":"Tag","name":"FaqItem","attributes":{"question":"What should I do if Databox cannot connect to my MariaDB server?"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Check the following in order:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bind-address"]}," in the MariaDB configuration is set to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0.0.0.0"]}," (or your server's public IP), and MariaDB has been restarted since the change."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The OS-level firewall allows TCP on port ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3306"]}," from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52.4.198.118"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Any cloud provider network firewall also allows port ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3306"]}," from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52.4.198.118/32"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The MariaDB user was created with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'databox'@'52.4.198.118'"]}," as the host — not ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'%'"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'localhost'"]},". Run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FLUSH PRIVILEGES;"]}," after any user or grant changes."]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[" "]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":4,"cardMinWidth":160},"children":[{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Ask Genie","icon":"genie","to":"https://app.databox.com/genie","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Get instant answers or help with your data using the in-app AI assistant."]}]},{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Talk to an expert","icon":"assistance","to":"https://meetings.hubspot.com/databox-meeting/account-management","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For customers: Get help with your setup, strategy, or making the most of Databox."]}]},{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Book a demo","icon":"eye-open","to":"https://meetings.hubspot.com/databox-meeting/ref-knowledge-base","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["New to Databox? See how it works and get guidance on getting started."]}]},{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Send an email","icon":"help","to":"mailto:help@databox.com","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Reach out to support for help with your account, data, or technical issues."]}]}]}]},"headings":[{"value":"Integrate MariaDB with Databox","id":"integrate-mariadb-with-databox","depth":1},{"value":"Connection","id":"connection","depth":2},{"value":"Step 1: Create a read-only MariaDB user for Databox","id":"step-1-create-a-read-only-mariadb-user-for-databox","depth":3},{"value":"Step 2: Allow remote connections on your MariaDB server","id":"step-2-allow-remote-connections-on-your-mariadb-server","depth":3},{"value":"Step 3: Open port 3306 in your server firewall","id":"step-3-open-port-3306-in-your-server-firewall","depth":3},{"value":"Step 4: Enter your MariaDB connection details in Databox","id":"step-4-enter-your-mariadb-connection-details-in-databox","depth":3},{"value":"SSL/TLS","id":"ssltls","depth":2},{"value":"Datasets","id":"datasets","depth":2},{"value":"Steps to create a dataset","id":"steps-to-create-a-dataset","depth":3},{"value":"Optional: Write SQL","id":"optional-write-sql","depth":3},{"value":"Additional resources","id":"additional-resources","depth":3},{"value":"Resources","id":"resources","depth":2}],"frontmatter":{"slug":"integrate-mariadb-with-databox","seo":{"title":"Integrate MariaDB with Databox","description":"Pull data from your MariaDB database into Databox, write custom SQL queries, and combine results with metrics from your other tools."},"keywords":{"includes":["MariaDB integration","connect MariaDB to Databox","MariaDB dataset","MariaDB custom SQL query","MariaDB read-only user","MariaDB firewall Databox","whitelist Databox IP MariaDB","MariaDB SSL TLS","MariaDB remote access Databox","MariaDB cannot connect","MariaDB port 3306"]},"metadata":{"userRole":"Users, Editors, and Admins","accountType":"All accounts","plan":"Exclusive to select subscription plans"}},"lastModified":"2026-04-17T19:27:17.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/integrate-mariadb-with-databox","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}