Redash
Redash is a powerful business intelligence tool that allows you to create and share data visualizations. You can connect Redash to many data sources, including the MySQL server. Let’s explore how to set up the connection.
Prerequisites
Before starting, ensure you have the following:
- A working installation of Anyquery
- A Redash account
Step 1: Set up the connection
First, launch the Anyquery server:
Because Redash is a web-based tool, and anyquery
binds locally, you need to expose the server to the internet. You can use a tool like ngrok to create a secure tunnel to your local server.
Copy the forwarding URL (e.g., tcp://0.tcp.ngrok.io:12345
) and use it as the hostname in the next step.
Step 2: Connect Redash
-
Open your redash instance in your browser.
-
Go to
{your-redash-url}/data_sources/new
. -
Select MySQL as the data source.
-
Fill in the following details:
-
Click on the
Create
button to save the connection. Then click onTest Connection
to verify that the connection is successful.
Creating your first visualization
- Go to the Redash dashboard and click on the
+ New Query
button. - Select the data source you just created.
- Write your query in the SQL editor. Often, you simply want to
SELECT * FROM table_name
. Then, click on theExecute
button. Finally, click on thePublish
button to save the query. - Go to the dashboard and click on the
+ New Dashboard
button. Input a name for the dashboard. - Add a new widget to the dashboard and select the query you just created.
Conclusion
You have successfully connected Redash to Anyquery. Now you can explore and visualize data from any source using Redash.