Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df6c256

Browse files
committed
minor #16515 [Doctrine] Recommend a better charset for MySQL (greg0ire)
This PR was merged into the 5.4 branch. Discussion ---------- [Doctrine] Recommend a better charset for MySQL UTF8 is meant to be used when using PostgreSQL, and the example is mainly about MySQL. In the case of MySQL, utf8 is a deprecated charset and should not be used. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 4f5845b Recommend a better charset for MySQL
2 parents b790aee + 4f5845b commit df6c256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/configuration/doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The following block shows all possible configuration keys:
6262
unix_socket: /tmp/mysql.sock
6363
# the DBAL wrapperClass option
6464
wrapper_class: App\DBAL\MyConnectionWrapper
65-
charset: UTF8
65+
charset: utf8mb4
6666
logging: '%kernel.debug%'
6767
platform_service: App\DBAL\MyDatabasePlatformService
6868
server_version: '5.7'
@@ -96,7 +96,7 @@ The following block shows all possible configuration keys:
9696
memory="true"
9797
unix-socket="/tmp/mysql.sock"
9898
wrapper-class="App\DBAL\MyConnectionWrapper"
99-
charset="UTF8"
99+
charset="utf8mb4"
100100
logging="%kernel.debug%"
101101
platform-service="App\DBAL\MyDatabasePlatformService"
102102
server-version="5.7">

0 commit comments

Comments
 (0)