Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/administration/server-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down