From c6147d67af209ac4b0e8383dd648877699a43423 Mon Sep 17 00:00:00 2001 From: meijerwynand Date: Thu, 26 Nov 2020 10:57:33 +0200 Subject: [PATCH] Update server-configuration.md Greetings, Please find proposed change to the installation manual. - Create a schema / database for CRM use - Create a dedicated user with access only to the database with no grant privs Thanks --- docs/administration/server-configuration.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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: