Skip to content

Commit

Permalink
Mention wrapping passwords using special characters with single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
pwizla committed Dec 13, 2023
1 parent 725efb2 commit 3289294
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docusaurus/docs/dev-docs/configurations/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ DATABASE_PASSWORD=strap1
DATABASE_SSL=false
```


</TabItem>

<TabItem value="postgres" label="PostgreSQL">
Expand Down Expand Up @@ -479,6 +480,10 @@ DATABASE_FILENAME=.tmp/data.db
</TabItem>
</Tabs>

:::tip
If you are getting an `ER_ACCESS_DENIED_ERROR message` and the `DATABASE_PASSWORD` value in your `.env` file includes special characters, try surrounding the password with single quotes. For instance, `DATABASE_PASSWORD=example-i-had-special-chars-like-#` should become `DATABASE_PASSWORD='example-i-had-special-chars-like-#'`.
:::

### Environment variables for Strapi applications before `v4.6.2`

If you started your project with a version prior to `v4.6.2` you can convert your `database.js|database.ts` configuration file following this procedure:
Expand Down

1 comment on commit 3289294

@vercel
Copy link

@vercel vercel bot commented on 3289294 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

documentation – ./

documentation-git-main-strapijs.vercel.app
docs-vercel-v4.strapi.io
documentation-strapijs.vercel.app

Please sign in to comment.