From 44f59126c8bbe73adc0e0e066208540f78871d60 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 7 Mar 2025 10:26:49 +0100 Subject: [PATCH 1/7] Update mysql_setup.md --- tutorials/mysql_setup.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tutorials/mysql_setup.md b/tutorials/mysql_setup.md index c51c7e18..089da307 100644 --- a/tutorials/mysql_setup.md +++ b/tutorials/mysql_setup.md @@ -77,6 +77,12 @@ Open `my.cnf`, add text below to the bottom of the file and save it: [mysqld] bind-address=0.0.0.0 ``` +If your node is on the same machine as the panel and you only need local access, you'll only need to configure your MySQL instance to also listen on the pterodactyl0 interface as well: +``` +[mysqld] +bind-address=127.0.0.1,172.18.0.1 +``` + Restart MySQL/MariaDB to apply these changes. This will override the default MySQL configuration, which by default will only accept requests from localhost. Updating this will allow connections on all interfaces, and thus, external connections. Make sure to allow the MySQL port (default 3306) in your firewall. If your Database and Wings are on the same machine and won't need external access, you can also use the `docker0` interface IP address rather than `127.0.0.1`. This IP address can be found by running `ip addr | grep docker0`, and it likely looks like `172.x.x.x`. From c9e695812f50155f123493c07bc4db7eff55fe68 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 8 Mar 2025 01:45:50 +0100 Subject: [PATCH 2/7] Update mysql_setup.md --- tutorials/mysql_setup.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tutorials/mysql_setup.md b/tutorials/mysql_setup.md index 089da307..dd19485b 100644 --- a/tutorials/mysql_setup.md +++ b/tutorials/mysql_setup.md @@ -77,12 +77,4 @@ Open `my.cnf`, add text below to the bottom of the file and save it: [mysqld] bind-address=0.0.0.0 ``` -If your node is on the same machine as the panel and you only need local access, you'll only need to configure your MySQL instance to also listen on the pterodactyl0 interface as well: -``` -[mysqld] -bind-address=127.0.0.1,172.18.0.1 -``` - -Restart MySQL/MariaDB to apply these changes. This will override the default MySQL configuration, which by default will only accept requests from localhost. Updating this will allow connections on all interfaces, and thus, external connections. Make sure to allow the MySQL port (default 3306) in your firewall. - -If your Database and Wings are on the same machine and won't need external access, you can also use the `docker0` interface IP address rather than `127.0.0.1`. This IP address can be found by running `ip addr | grep docker0`, and it likely looks like `172.x.x.x`. +If your Database and Wings are on the same machine and won't need external access, you can also use the `pterodacrtyl0` interface IP address rather than `127.0.0.1`. This IP address is from wings' docker interface and can be found in the `config.yml` of your wings instance, the default is `172.18.0.1`. From bc138686c18c60e3ec79d80ce5530f94b35e0de0 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 8 Mar 2025 01:48:41 +0100 Subject: [PATCH 3/7] Update mysql_setup.md --- tutorials/mysql_setup.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/mysql_setup.md b/tutorials/mysql_setup.md index dd19485b..5d092c6e 100644 --- a/tutorials/mysql_setup.md +++ b/tutorials/mysql_setup.md @@ -77,4 +77,6 @@ Open `my.cnf`, add text below to the bottom of the file and save it: [mysqld] bind-address=0.0.0.0 ``` +Restart MySQL/MariaDB to apply these changes. This will override the default MySQL configuration, which by default will only accept requests from localhost. Updating this will allow connections on all interfaces, and thus, external connections. Make sure to allow the MySQL port (default 3306) in your firewall. + If your Database and Wings are on the same machine and won't need external access, you can also use the `pterodacrtyl0` interface IP address rather than `127.0.0.1`. This IP address is from wings' docker interface and can be found in the `config.yml` of your wings instance, the default is `172.18.0.1`. From 750d864d090dcb25545be3d302345f4c25d0ede0 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 8 Mar 2025 01:55:30 +0100 Subject: [PATCH 4/7] Update mysql_setup.md --- tutorials/mysql_setup.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/mysql_setup.md b/tutorials/mysql_setup.md index 5d092c6e..f40baab0 100644 --- a/tutorials/mysql_setup.md +++ b/tutorials/mysql_setup.md @@ -80,3 +80,5 @@ bind-address=0.0.0.0 Restart MySQL/MariaDB to apply these changes. This will override the default MySQL configuration, which by default will only accept requests from localhost. Updating this will allow connections on all interfaces, and thus, external connections. Make sure to allow the MySQL port (default 3306) in your firewall. If your Database and Wings are on the same machine and won't need external access, you can also use the `pterodacrtyl0` interface IP address rather than `127.0.0.1`. This IP address is from wings' docker interface and can be found in the `config.yml` of your wings instance, the default is `172.18.0.1`. + +Starting with MySQL 8.0.13 / MariaDB 10.11 or above, `bind_address` now also accept a comma-separated list of interfaces to give more control over what interfaces it will listen on and which not. From b91f753b48b8538f3fbe8b584153d12c77eac477 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 8 Mar 2025 01:56:55 +0100 Subject: [PATCH 5/7] This singular 's' is my biggest commit yet --- tutorials/mysql_setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/mysql_setup.md b/tutorials/mysql_setup.md index f40baab0..182a68ac 100644 --- a/tutorials/mysql_setup.md +++ b/tutorials/mysql_setup.md @@ -81,4 +81,4 @@ Restart MySQL/MariaDB to apply these changes. This will override the default MyS If your Database and Wings are on the same machine and won't need external access, you can also use the `pterodacrtyl0` interface IP address rather than `127.0.0.1`. This IP address is from wings' docker interface and can be found in the `config.yml` of your wings instance, the default is `172.18.0.1`. -Starting with MySQL 8.0.13 / MariaDB 10.11 or above, `bind_address` now also accept a comma-separated list of interfaces to give more control over what interfaces it will listen on and which not. +Starting with MySQL 8.0.13 / MariaDB 10.11 or above, `bind_address` now also accepts a comma-separated list of interfaces to give more control over what interfaces it will listen on and which not. From c464ce443becbfc6706639ce37bf451833a32244 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 8 Mar 2025 02:03:11 +0100 Subject: [PATCH 6/7] I failed first grade spelling bee --- tutorials/mysql_setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/mysql_setup.md b/tutorials/mysql_setup.md index 182a68ac..1817a130 100644 --- a/tutorials/mysql_setup.md +++ b/tutorials/mysql_setup.md @@ -79,6 +79,6 @@ bind-address=0.0.0.0 ``` Restart MySQL/MariaDB to apply these changes. This will override the default MySQL configuration, which by default will only accept requests from localhost. Updating this will allow connections on all interfaces, and thus, external connections. Make sure to allow the MySQL port (default 3306) in your firewall. -If your Database and Wings are on the same machine and won't need external access, you can also use the `pterodacrtyl0` interface IP address rather than `127.0.0.1`. This IP address is from wings' docker interface and can be found in the `config.yml` of your wings instance, the default is `172.18.0.1`. +If your Database and Wings are on the same machine and won't need external access, you can also use the `pterodactyl0` interface IP address rather than `127.0.0.1`. This IP address is from wings' docker interface and can be found in the `config.yml` of your wings instance, the default is `172.18.0.1`. Starting with MySQL 8.0.13 / MariaDB 10.11 or above, `bind_address` now also accepts a comma-separated list of interfaces to give more control over what interfaces it will listen on and which not. From 5de463ca05b4adc6cba5a2c4db6cb74ea1b55d2a Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 9 May 2025 12:27:42 +0200 Subject: [PATCH 7/7] Reversed to docker0 interface per review request --- tutorials/mysql_setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/mysql_setup.md b/tutorials/mysql_setup.md index 1817a130..85592c42 100644 --- a/tutorials/mysql_setup.md +++ b/tutorials/mysql_setup.md @@ -79,6 +79,6 @@ bind-address=0.0.0.0 ``` Restart MySQL/MariaDB to apply these changes. This will override the default MySQL configuration, which by default will only accept requests from localhost. Updating this will allow connections on all interfaces, and thus, external connections. Make sure to allow the MySQL port (default 3306) in your firewall. -If your Database and Wings are on the same machine and won't need external access, you can also use the `pterodactyl0` interface IP address rather than `127.0.0.1`. This IP address is from wings' docker interface and can be found in the `config.yml` of your wings instance, the default is `172.18.0.1`. +If your Database and Wings are on the same machine and won't need external access, you can also use the `docker0` interface IP address rather than `127.0.0.1`. This IP address can be found by running `ip addr | grep docker0`, and it likely looks like `172.x.x.x`. Starting with MySQL 8.0.13 / MariaDB 10.11 or above, `bind_address` now also accepts a comma-separated list of interfaces to give more control over what interfaces it will listen on and which not.