Skip to content

Commit a50d28b

Browse files
committed
Fix doctrine mysql deprecation
1 parent 6c1f6f9 commit a50d28b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/mysql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Depending on the database configuration,
5151
modify the environment in the same file at `services.php.environment.DATABASE_URL`:
5252

5353
```yaml
54-
DATABASE_URL: mysql://${MYSQL_USER:-app}:${MYSQL_PASSWORD:-!ChangeMe!}@database:3306/${MYSQL_DATABASE:-app}?serverVersion=${MYSQL_VERSION:-8}&charset=${MYSQL_CHARSET:-utf8mb4}
54+
DATABASE_URL: mysql://${MYSQL_USER:-app}:${MYSQL_PASSWORD:-!ChangeMe!}@database:3306/${MYSQL_DATABASE:-app}?serverVersion=${MYSQL_VERSION:-8.0.32}&charset=${MYSQL_CHARSET:-utf8mb4}
5555
```
5656
5757
Since we changed the port, we also have to define this in the `compose.override.yaml`:
@@ -79,7 +79,7 @@ Last but not least, we need to install the MySQL driver in `Dockerfile`:
7979
Change the database configuration in `.env`:
8080

8181
```dotenv
82-
DATABASE_URL=mysql://${MYSQL_USER:-app}:${MYSQL_PASSWORD:-!ChangeMe!}@database:3306/${MYSQL_DATABASE:-app}?serverVersion=${MYSQL_VERSION:-8}&charset=${MYSQL_CHARSET:-utf8mb4}
82+
DATABASE_URL=mysql://${MYSQL_USER:-app}:${MYSQL_PASSWORD:-!ChangeMe!}@database:3306/${MYSQL_DATABASE:-app}?serverVersion=${MYSQL_VERSION:-8.0.32}&charset=${MYSQL_CHARSET:-utf8mb4}
8383
```
8484

8585
## Final steps

0 commit comments

Comments
 (0)