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

Skip to content

Commit 4f5845b

Browse files
committed
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.
1 parent fe518d1 commit 4f5845b

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)