Skip to content

Commit 5f9ae66

Browse files
Reword
1 parent eb93d15 commit 5f9ae66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doctrine.rst

Lines changed: 2 additions & 2 deletions
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?charset=utf8mb4&serverVersion=5.7"
45+
DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name"
4646
4747
# to use sqlite:
4848
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
@@ -53,7 +53,7 @@ The database connection information is stored as an environment variable called
5353
special in a URI (such as ``!``, ``@``, ``$``, ``#``, ``/``), you must encode them.
5454
See `RFC 3986`_ for the full list of reserved characters or use the
5555
:phpfunction:`urlencode` function to encode them. In this case you need to remove
56-
the ``resolve:`` prefix in ``config/packages/doctrine.yaml``:
56+
the ``resolve:`` prefix in ``config/packages/doctrine.yaml`` to avoid errors:
5757
``url: '%env(resolve:DATABASE_URL)%'``
5858

5959
Now that your connection parameters are setup, Doctrine can create the ``db_name``

0 commit comments

Comments
 (0)