mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
added password-reset.mdx
This commit is contained in:
1 parent
23b2bc39eb
commit
7458ef3e2f
2 files changed
+58
-1
No files matched your search
@@ -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
|
||||
|
||||
<Tabs
|
||||
defaultValue="SQL"
|
||||
values={[
|
||||
{label: 'SQL', value: 'SQL'},
|
||||
]}>
|
||||
|
||||
<TabItem value="SQL">
|
||||
|
||||
```sql
|
||||
ALTER USER postgres WITH PASSWORD 'new_password';
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
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)
|
||||
|
||||
+1
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user