nurul akter towhid
01/23/2024, 1:08 PMMarvin
01/23/2024, 1:08 PMnurul akter towhid
01/23/2024, 1:16 PMMarvin
01/23/2024, 1:17 PMpg_trgm
extension enabled, since Prefect uses it.
2. Set the database connection URL by using prefect config set
. The connection URL should follow the format: postgresql+asyncpg://<username>:<password>@<host>:<port>/<database>
. Replace <username>
, <password>
, <host>
, <port>
, and <database>
with your PostgreSQL credentials and connection details.
Here's an example command to set up the database connection with PostgreSQL:
sh
prefect config set PREFECT_API_DATABASE_CONNECTION_URL="<postgresql+asyncpg://postgres:yourTopSecretPassword@localhost:5432/prefect>"
In this example:
- Replace postgres
with your PostgreSQL username.
- Replace yourTopSecretPassword
with your actual password.
- The database is assumed to run on the same machine (localhost
) and listen to the default PostgreSQL port (5432
).
For the full details and any extra configurations, you can refer to the Prefect documentation on hosting and database settings. Please ensure your PostgreSQL is properly set up and accessible before attempting to connect Prefect to it.