# MariaDB

## Create MariaDB Integration

When inside a workbook, click **View** > **Databases**, then click the **+** icon and follow the on-screen instructions.

![Create a MariaDB connection](https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2F1AV01oGYebVlMphIkKV2%2FScreenshot%202023-06-30%20at%2014.09.57.png?alt=media\&token=e61ecc31-b0ac-4ba1-a34a-e8d90ead076f)

For detailed instructions, see [connect-your-data-to-workspace](https://datalab-docs.datacamp.com/connect-to-data/connect-your-data-to-workspace "mention").

If you want to experiment with MariaDB without setting up a connection, you can use our sample database containing with World Nations data ([source](https://www.mariadbtutorial.com/getting-started/mariadb-sample-database/)).

## Query the database

You can now query the MariaDB database with a [sql-cell](https://datalab-docs.datacamp.com/work/sql-cell "mention"). Select it in the **Select source** dropdown in the top left corner of a SQL cell, or select the sample MariaDB database.

![Example of a SQL cell using the MariaDB Demo database connection. The query result is available as df.](https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2FAvgdWWKnE2dNNZfPooU7%2Fimage.png?alt=media\&token=dc5cbdf8-fcf5-4c8b-8633-ea7d3b15772a)

###
