Skip to content

Commit 6c4d0f6

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

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ Port 3306 is firewalled on all Hypernodes to prevent hackers and bruteforces fro
4949

5050
First check which IP addresses have been whitelisted already, if any.
5151

52-
```console
52+
```bash
5353
hypernode-systemctl whitelist get
5454
```
5555

5656
### Adding to the Allowlist
5757

5858
To add more values to your allowlist you can run the following. Please note that descriptions are optional:
5959

60-
```console
60+
```bash
6161
hypernode-systemctl whitelist add database 203.0.113.4 --description "my description"
6262
```
6363

6464
### Removing From the Allowlist
6565

6666
To remove IP addresses from your allowlists you can run the following:
6767

68-
```console
68+
```bash
6969
hypernode-systemctl whitelist remove database 203.0.113.4
7070
```
7171

@@ -86,15 +86,15 @@ Because we’ve provided a `~/.my.cnf`, you’re all set to go.
8686

8787
Just type `mysql` and you’re in.
8888

89-
```console
89+
```bash
9090
mysql
9191
```
9292

9393
### Use the Command Line Shell From a Remote Host
9494

9595
Use your credentials to connect like so:
9696

97-
```console
97+
```bash
9898
mysql --host=mysqlmaster.example.hypernode.io --user=app --password=mypassword
9999
```
100100

@@ -113,7 +113,7 @@ If you are blocked by a firewall, you can create a temporary tunnel between the
113113

114114
Use this command:
115115

116-
```console
116+
```bash
117117
ssh -NL 3306:mysqlmaster:3306 app@example.hypernode.io
118118
```
119119

@@ -125,7 +125,7 @@ Voila, now your Hypernode database is reachable through localhost port 3306!
125125

126126
Use the following command using SSH:
127127

128-
```console
128+
```bash
129129
magerun db:dump -n -c gz -s @stripped
130130
```
131131

@@ -158,7 +158,7 @@ Hypernode offers several version of MySQL to be able to meet te requirements of
158158

159159
To upgrade your MySQL version you can use [the hypernode-systemctl tool](../tools/how-to-use-the-hypernode-systemctl-cli-tool.md#mysql) through the command line.
160160

161-
```console
161+
```bash
162162
hypernode-systemctl settings mysql_version --value 5.7
163163
```
164164

@@ -214,7 +214,7 @@ How you change the database password depends on what version of MySQL you are ru
214214

215215
Login to your MySQL server via the following command:
216216

217-
```console
217+
```bash
218218
mysql
219219
```
220220

@@ -234,7 +234,7 @@ exit;
234234

235235
Login to your MySQL server via the following command
236236

237-
```console
237+
```bash
238238
mysql
239239
```
240240

@@ -256,7 +256,7 @@ Remember to update your `~/.my.cnf` with your new password so you could easily l
256256

257257
Login to your MySQL server via the following command
258258

259-
```console
259+
```bash
260260
mysql
261261
```
262262

@@ -282,7 +282,7 @@ Remember to update your `~/.my.cnf` with your new password so you could easily l
282282

283283
You can upgrade the MySQL version on your Hypernode from 5.6 to 5.7 with the following command:
284284

285-
```console
285+
```bash
286286
hypernode-systemctl settings mysql_version 5.7
287287
```
288288

@@ -294,7 +294,7 @@ You can then check with `livelog` when the process has finished and your MySQL v
294294

295295
Before you can upgrade to MySQL 8.0 you first need to upgrade the MySQL version to 5.7 and wait for this process to finish. Once that is done, you can upgrade the MySQL version on your Hypernode from 5.7 to 8.0 with the following command:
296296

297-
```console
297+
```bash
298298
hypernode-systemctl settings mysql_version 8.0
299299
```
300300

0 commit comments

Comments
 (0)