Skip to content

Commit

Permalink
Update database.md (#2108)
Browse files Browse the repository at this point in the history
The configuration parameters required by mysql2 are "name" and "password". The parameter "username" rises a warning.
  • Loading branch information
voicewise committed May 21, 2024
1 parent 9865fbf commit fd42583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus/docs/dev-docs/configurations/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,5 +550,5 @@ $ GRANT ALL ON SCHEMA public TO my_strapi_db_user;
In addition to `client` values of '[postgres](https://www.npmjs.com/package/pg)', 'sqlite', and '[mysql](https://www.npmjs.com/package/mysql)', Strapi also allows a `client` value of '[mysql2](https://www.npmjs.com/package/mysql2)' for those who install and wish to use that package.

:::note
`mysql2` is required for the `caching_sha2_password` auth method used by default in MySQL v8+. If you receive an `"ER_NOT_SUPPORTED_AUTH_MODE"` error when using the `mysql` driver, try adding the `mysql2` package to your project. You should then remove the deprecated `connectionString` parameter from your connection configuration in favor of the `username` and `password` values.
`mysql2` is required for the `caching_sha2_password` auth method used by default in MySQL v8+. If you receive an `"ER_NOT_SUPPORTED_AUTH_MODE"` error when using the `mysql` driver, try adding the `mysql2` package to your project. You should then remove the deprecated `connectionString` parameter from your connection configuration in favor of the `user` and `password` values.
:::

0 comments on commit fd42583

Please sign in to comment.