From 7458ef3e2fcd2b45f05768ed2ba02f6717c2ba4a Mon Sep 17 00:00:00 2001 From: Mark Burggraf Date: Mon, 7 Jun 2021 14:15:54 -0700 Subject: [PATCH] added password-reset.mdx --- web/docs/guides2/password-reset.mdx | 57 +++++++++++++++++++++++++++++ web/sidebars.js | 2 +- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 web/docs/guides2/password-reset.mdx diff --git a/web/docs/guides2/password-reset.mdx b/web/docs/guides2/password-reset.mdx new file mode 100644 index 00000000000..277fbf06df5 --- /dev/null +++ b/web/docs/guides2/password-reset.mdx @@ -0,0 +1,57 @@ +--- +id: password-reset +title: "Reset Database Password" +description: How to change your PostgreSQL database password. +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +### How to change your PostgreSQL database password. + +## Description + +Your PostgreSQL database is the core of your Supabase project, so it's important to make sure it has a strong, secure password at all times. Changing the password is easy -- just make sure you choose a password that: + +* is very secure +* does not contain of the following symbols: **: / ? # ] [ @ ! $ & ' ( ) * + , ; =** + +These special symbols can conflict with connection string URLs or cause other problems, so it's best to avoid them. You can still make a secure password using a longer string or a randomized set of upper and lowercase letters and digits. + +## Environment +* Any PostgreSQL database +* Any Supabase project + +## Steps + +Issue the following statement in a SQL editor: + +From the [Supabase Dashboard](https://supabase.io): +- Home +- Select a Project +- SQL +- New Query + + + + + +```sql +ALTER USER postgres WITH PASSWORD 'new_password'; +``` + + + + + +Be sure to remember your password or store it in a secure place. + +## Resources + +* [Supabase Account - Free Tier OK](https://supabase.io) +* [PostgreSQL ALTER USER Documentation](https://www.postgresql.org/docs/12/sql-alteruser.html) + diff --git a/web/sidebars.js b/web/sidebars.js index 87189d9cf60..f99734fc6e8 100755 --- a/web/sidebars.js +++ b/web/sidebars.js @@ -88,7 +88,7 @@ module.exports = { type: 'category', label: 'Guides2', collapsed: false, - items: ['guides2/arrays', 'guides2/json'], + items: ['guides2/arrays', 'guides2/json', 'guides2/password-reset'], }, { type: 'category',