Skip to content

Commit 3a523e1

Browse files
Added charset "query string"
Couldn't find any reference for `charset` in `DATABASE_URL` anywhere, so I'm just adding it here... Is there a list of *all* possible query string parameters somewhere?
1 parent 3cf74d4 commit 3a523e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctrine.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The database connection information is stored as an environment variable called
4242
# .env
4343
4444
# customize this line!
45-
DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name"
45+
DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?charset=utf8mb4&serverVersion=5.7"
4646
4747
# to use sqlite:
4848
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"

0 commit comments

Comments
 (0)