Skip to content

Commit 3e45fd3

Browse files
authored
Update how-to-use-mysql-on-hypernode.md
1 parent 6c4d0f6 commit 3e45fd3

File tree

1 file changed

+38
-37
lines changed

1 file changed

+38
-37
lines changed

docs/hypernode-platform/mysql/how-to-use-mysql-on-hypernode.md

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -41,42 +41,6 @@ host = mysqlmaster.example.hypernode.io
4141
- Define views and triggers.
4242
- If you want to use a GUI to work on your database we recommend using a local GUI (Such as [HeidiSQL](../../best-practices/database/how-to-use-heidisql-on-hypernode.md) on Windows) instead of an online GUI ([PHPMyAdmin](../mysql/how-to-use-phpmyadmin.md)).
4343

44-
## Whitelisting Your IP Address
45-
46-
Port 3306 is firewalled on all Hypernodes to prevent hackers and bruteforces from connecting to your MySQL instance. That's why if you want to externally connect to MySQL on the Hypernode, you’ll need to add the remote IP address to the allowlist first.
47-
48-
### Allow an IP via the hypernode-systemctl CLI tool
49-
50-
First check which IP addresses have been whitelisted already, if any.
51-
52-
```bash
53-
hypernode-systemctl whitelist get
54-
```
55-
56-
### Adding to the Allowlist
57-
58-
To add more values to your allowlist you can run the following. Please note that descriptions are optional:
59-
60-
```bash
61-
hypernode-systemctl whitelist add database 203.0.113.4 --description "my description"
62-
```
63-
64-
### Removing From the Allowlist
65-
66-
To remove IP addresses from your allowlists you can run the following:
67-
68-
```bash
69-
hypernode-systemctl whitelist remove database 203.0.113.4
70-
```
71-
72-
### Manage the Allowlist via the Control Panel
73-
74-
It's also possible to whitelist an IP address via the Control Panel
75-
76-
1. Log on to the [Control Panel](https://my.hypernode.com).
77-
1. Select your Hypernode.
78-
1. Select `Allowlist` from the menu.
79-
1. Add the IP addresses to the database allowlist.
8044

8145
## How to Connect to MySQL
8246

@@ -98,7 +62,7 @@ Use your credentials to connect like so:
9862
mysql --host=mysqlmaster.example.hypernode.io --user=app --password=mypassword
9963
```
10064

101-
Please note you will need to add the remote host's IP address to the allowlist first, as described above.
65+
Please note you will need to add the remote host's IP address to the allowlist first, as described below
10266

10367
### Using HeidiSQL/PHPMyAdmin to Connect to MySQL
10468

@@ -119,6 +83,43 @@ ssh -NL 3306:mysqlmaster:3306 app@example.hypernode.io
11983

12084
Voila, now your Hypernode database is reachable through localhost port 3306!
12185

86+
## Allowlisting Your IP Address
87+
88+
Port 3306 is firewalled on all Hypernodes to prevent hackers and bruteforces from connecting to your MySQL instance. That's why if you want to externally connect to MySQL on the Hypernode, you’ll need to add the remote IP address to the allowlist first.
89+
90+
### Allow an IP via the hypernode-systemctl CLI tool
91+
92+
First check which IP addresses have been whitelisted already, if any.
93+
94+
```bash
95+
hypernode-systemctl whitelist get
96+
```
97+
98+
### Adding to the Allowlist
99+
100+
To add more values to your allowlist you can run the following. Please note that descriptions are optional:
101+
102+
```bash
103+
hypernode-systemctl whitelist add database 203.0.113.4 --description "my description"
104+
```
105+
106+
### Removing From the Allowlist
107+
108+
To remove IP addresses from your allowlists you can run the following:
109+
110+
```bash
111+
hypernode-systemctl whitelist remove database 203.0.113.4
112+
```
113+
114+
### Manage the Allowlist via the Control Panel
115+
116+
It's also possible to whitelist an IP address via the Control Panel
117+
118+
1. Log on to the [Control Panel](https://my.hypernode.com).
119+
1. Select your Hypernode.
120+
1. Select `Allowlist` from the menu.
121+
1. Add the IP addresses to the database allowlist.
122+
122123
## Creating a MySQL Back-Up
123124

124125
### Using Magerun

0 commit comments

Comments
 (0)