---
title: Get a Data Source
sidebarTitle: Get a Data Source
---

You can save a data sources into a variable using the code below.

```
const db = await MindsDB.Databases.getDatabase('mysql_datasource');
```
