From 44f59126c8bbe73adc0e0e066208540f78871d60 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 7 Mar 2025 10:26:49 +0100 Subject: [PATCH 1/6] 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 c51c7e18d..089da3071 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/6] 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 089da3071..dd19485bb 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/6] 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 dd19485bb..5d092c6e6 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/6] 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 5d092c6e6..f40baab09 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/6] 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 f40baab09..182a68acd 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/6] 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 182a68acd..1817a1309 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.