diff --git a/docs/administration/server-configuration.md b/docs/administration/server-configuration.md index 0a4c151a8..9fae5cbc9 100644 --- a/docs/administration/server-configuration.md +++ b/docs/administration/server-configuration.md @@ -55,6 +55,15 @@ Optional php extensions that may be needed: EspoCRM supports MySQL 5.7 or greater and MariaDB 10.1 or greater. These are no special peculiarities. All default settings are fine for EspoCRM. +### Basic user setup +In this example it will create a database named `espocrm`, a user named `www_espo`, and give permission for the `www_espo` to only access the `espocrm` database when connecting from localhost. + +``` +CREATE SCHEMA espocrm; +CREATE USER 'www_espo'@'localhost' identified with mysql_native_password by 'ThePasswordYouWillBeUsing'; +GRANT ALL PRIVILEGES ON espocrm.* TO 'www_espo'@'localhost'; +``` + ### MySQL 8 support MySQL 8.0.4 has changed a default authentication method to `caching_sha2_password` which is not supported by PHP (at the time of writing). For MySQL 8 it should be changed to `mysql_native_password` method. For a user it can be done with the query: