docs/docs/databases/mariadb/cloud.mdx
import Thumbnail from '@site/src/components/Thumbnail'; import ProductBadge from '@site/src/components/ProductBadge';
This guide will help you get set up with Hasura Cloud and our MariaDB integration. This is the easiest way to set up Hasura Engine and the MariaDB GraphQL Data Connector.
:::tip Supported versions:
v2.24.0 onwards:::
:::tip Supported features
Hasura currently supports queries, mutations (INSERT, UPDATE, DELETE), table relationships, remote relationships and permissions on MariaDB.
Note that Hasura doesn't yet support the ability to modify the database schema for MariaDB, so the database you connect to should already contain tables and data. You should also ideally have access to it outside of Hasura to modify the schema.
:::
Navigate to cloud.hasura.io, and create a new Hasura Cloud account.
Once you create a project on Hasura Cloud, hit the "Launch Console" button to open the Hasura Console for your project.
<Thumbnail src="/img/databases/data-connector/create-project.png" alt="Connect new or existing database" width="1000px" />
From the Console, click the Data tab:
Select the MariaDB data source driver. Enter a database display name and the JDBC Connection URL for your MariaDB instance.
The JDBC connection URL should look like this:
jdbc:mariadb://<hostname>:<port>/<database name>?user=<username>&password=<password>
For example:
jdbc:mariadb://myhost.mycompany.com/mariadbtest?user=abc&password=pqr # assuming the default port 3306
jdbc:mariadb://localhost:4533/mariadbtest?user=abc&password=pqr # assuming MariaDB is running on port 4533
For more information see MariaDB Connection URL syntax.
Click Connect Database.
:::info Ensure your password escapes special characters
Due to the potential variations in drivers, it's crucial to escape special characters used in the password of the
connection string. These include { } % & #. To escape a character, use the appropriate escape sequence based on your
database's driver's documentation.
:::
Now that you have successfully connected your MariaDB database to Hasura, you can track tables and use Hasura to automatically build a GraphQL API on top of it.
If you'd like to stay informed about the status of MariaDB support, subscribe to our newsletter and join our discord!