You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ Laradock is configured to run Laravel Apps by default, and it can be modifyed to
61
61
- [Access workspace via ssh](#Workspace-ssh)
62
62
- [MySQL access from host](#MySQL-access-from-host)
63
63
- [MySQL root access](#MySQL-root-access)
64
+
- [Change MySQL port](#Change-MySQL-port)
64
65
- [Use custom Domain](#Use-custom-Domain)
65
66
- [Enable Global Composer Build Install](#Enable-Global-Composer-Build-Install)
66
67
- [Install Prestissimo](#Install-Prestissimo)
@@ -1164,6 +1165,17 @@ The default username and password for the root mysql user are `root` and `root `
1164
1165
4 - Run any commands `show databases`, `show tables`, `select * from.....`.
1165
1166
1166
1167
1168
+
<aname="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 <ahref="#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.
0 commit comments