From b49854bde5c632820b81064a13fdf07bb1329c67 Mon Sep 17 00:00:00 2001 From: Marcin K Date: Wed, 7 Aug 2019 22:36:20 +0200 Subject: [PATCH] TUTORIAL: Use password explicitly --- TUTORIAL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index bab6357..bbddee2 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -3,13 +3,13 @@ Before you start, you should understand the concept of forward/up and reverse/do Configure a database for your application. Make sure that your database driver is supported [here](README.md#databases) For the purpose of this tutorial let's create PostgreSQL database called `example`. -Our user here is `postgres`, and host is `localhost`. +Our user here is `postgres`, password `password`, and host is `localhost`. ``` psql -h localhost -U postgres -w -c "create database example;" ``` When using Migrate CLI we need to pass to database URL. Let's export it to a variable for convienience: ``` -export POSTGRESQL_URL=postgres://postgres:postgres@localhost:5432/example?sslmode=disable +export POSTGRESQL_URL=postgres://postgres:password@localhost:5432/example?sslmode=disable ``` `sslmode=disable` means that the connection with out database will not be encrypted. Enabling it is left as an exercise.