Skip to content

Commit cbeeb48

Browse files
committed
Added mysql change port binnd documentation
1 parent 5e9ae56 commit cbeeb48

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Laradock is configured to run Laravel Apps by default, and it can be modifyed to
6161
- [Access workspace via ssh](#Workspace-ssh)
6262
- [MySQL access from host](#MySQL-access-from-host)
6363
- [MySQL root access](#MySQL-root-access)
64+
- [Change MySQL port](#Change-MySQL-port)
6465
- [Use custom Domain](#Use-custom-Domain)
6566
- [Enable Global Composer Build Install](#Enable-Global-Composer-Build-Install)
6667
- [Install Prestissimo](#Install-Prestissimo)
@@ -1164,6 +1165,17 @@ The default username and password for the root mysql user are `root` and `root `
11641165
4 - Run any commands `show databases`, `show tables`, `select * from.....`.
11651166

11661167

1168+
<a name="Change-MySQL-port"></a>
1169+
### Change MySQL port
1170+
1171+
Modify the `mysql/my.cnf` file to set your port number, `1234` is used as an example.
1172+
1173+
```
1174+
[mysqld]
1175+
port=1234
1176+
```
1177+
1178+
If you need <a href="#MySQL-access-from-host">MySQL access from your host</a>, do not forget to change the internal port number (`"3306:3306"` -> `"3306:1234"`) in the docker-compose config file.
11671179

11681180
<a name="Use-custom-Domain"></a>
11691181
### Use custom Domain (instead of the Docker IP)

0 commit comments

Comments
 (0)