Skip to content

Commit 54061d8

Browse files
adriendupuismnocon
andcommitted
IBX-8855: Ensure DDEV's MySQL character set & collation (#2481)
--------- Co-authored-by: Marek Nocoń <[email protected]> (cherry picked from commit dcdd3c5)
1 parent eeda18c commit 54061d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/getting_started/install_with_ddev.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ Now, configure the database connection for your [[= product_name =]] project. De
7171
ddev config --web-environment-add DATABASE_URL=mysql://db:db@db:3306/db
7272
```
7373

74+
To ensure consistent character set when performing operations both in Symfony context and with the `ddev mysql` client add the following database server configuration.
75+
76+
Create the file `.ddev/mysql/utf8mb4.cnf` with the following content:
77+
78+
```cfg
79+
[mysqld]
80+
character-set-server = utf8mb4
81+
collation-server = utf8mb4_unicode_520_ci
82+
```
83+
7484
=== "PostgreSQL"
7585

7686
```bash

0 commit comments

Comments
 (0)