Skip to main content
MindsDB home page
SDKs & APIs
Ask AI
Copy page
Search...
MindsDB home page
Search...
Navigation
Data Sources
Get a Data Source
Overview
Introduction
Interfaces
REST API
Python SDK
JavaScript SDK
Overview
Connect
Setup
Data Sources
List Data Handlers
Connect a Data Source
Get a Data Source
Remove a Data Source
List Data Sources
Unify
Respond
Watch Video
Slack
GitHub
Website
Data Sources
Get a Data Source
You can save a data sources into a variable using the code below.
Copy
Ask AI
const db = await MindsDB.Databases.getDatabase('mysql_datasource');
Was this page helpful?
Yes
No
Suggest edits
Raise issue
Connect a Data Source
Remove a Data Source
Assistant
Responses are generated using AI and may contain mistakes.