Materialize
import { Render } from "~/components";
This example shows you how to connect Hyperdrive to a Materialize database. Materialize is a Postgres-compatible streaming database that can automatically compute real-time results against your streaming data sources.
1. Allow Hyperdrive access
To allow Hyperdrive to connect to your database, you will need to ensure that Hyperdrive has valid user credentials and network access to your database.
Materialize Console
:::note
Read the Materialize Quickstart guide to set up your first database. The steps below assume you have an existing Materialize database ready to go.
:::
You will need to create a new application user and password for Hyperdrive to connect with:
- Log in to the Materialize Console.
- Under the App Passwords section, select Manage app passwords.
- Select New app password and enter a name, for example,
hyperdrive-user. - Select Create Password.
- Copy the provided password: it will only be shown once.
To retrieve the hostname and database name of your Materialize configuration:
- Select Connect in the sidebar of the Materialize Console.
- Select External tools.
- Copy the Host, Port and Database settings.
With the username, app password, hostname, port and database name, you can now connect Hyperdrive to your Materialize database.
2. Create a database configuration
谢谢你的反馈!