Fix typo in command in databases.md (#20480)

* Fix typo in command in databases.md

* Fix typo the other way around to comply with the rest of the document
This commit is contained in:
Ricardo Fernández 2024-07-25 23:14:29 -07:00 committed by GitHub
parent 9da68b18aa
commit 669e06355e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ the port mapped.
Run the following command in a terminal.
```console
$ docker run -p 3306:3306 --name my-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -e MYSQL_DATABASE=mydb -d mysql:latest
$ docker run -p 3307:3306 --name my-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -e MYSQL_DATABASE=mydb -d mysql:latest
```
In this command, `-p 3307:3306` maps port 3307 on the host to port 3306 in the container.
@ -675,4 +675,4 @@ Related information:
- [Dockerfile reference](/reference/dockerfile/)
- [Compose file reference](/compose/compose-file/)
- [CLI reference](/reference/cli/docker/)
- [Database samples](../../samples/_index.md#databases)
- [Database samples](../../samples/_index.md#databases)