Skip to content

Commit

Permalink
IBX-8855: Ensure DDEV's MySQL character set & collation (#2481)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
  • Loading branch information
adriendupuis and mnocon committed Sep 17, 2024
1 parent 27cf534 commit dcdd3c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/getting_started/install_with_ddev.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ Now, configure the database connection for your [[= product_name =]] project. De
ddev config --web-environment-add DATABASE_URL=mysql://db:db@db:3306/db
```

To ensure consistent character set when performing operations both in Symfony context and with the `ddev mysql` client add the following database server configuration.

Create the file `.ddev/mysql/utf8mb4.cnf` with the following content:

```cfg
[mysqld]
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_520_ci
```

=== "PostgreSQL"

```bash
Expand Down

0 comments on commit dcdd3c5

Please sign in to comment.