Skip to content

Commit b098cc2

Browse files
abhjolheiserlafriks
authored
Use documentation IPs for example IPs (#10434)
See https://tools.ietf.org/html/rfc5737 Co-authored-by: John Olheiser <[email protected]> Co-authored-by: Lauris BH <[email protected]>
1 parent fa33816 commit b098cc2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/content/doc/installation/database-preparation.en-us.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ Note: All steps below requires that the database engine of your choice is instal
4242
4343
```sql
4444
SET old_passwords=0;
45-
CREATE USER 'gitea'@'12.34.56.78' IDENTIFIED BY 'gitea';
45+
CREATE USER 'gitea'@'192.0.2.10' IDENTIFIED BY 'gitea';
4646
```
4747
48-
where `12.34.56.78` is the IP address of your Gitea instance.
48+
where `192.0.2.10` is the IP address of your Gitea instance.
4949
5050
Replace username and password above as appropriate.
5151
@@ -69,7 +69,7 @@ Note: All steps below requires that the database engine of your choice is instal
6969
For remote database:
7070
7171
```sql
72-
GRANT ALL PRIVILEGES ON giteadb.* TO 'gitea'@'12.34.56.78';
72+
GRANT ALL PRIVILEGES ON giteadb.* TO 'gitea'@'192.0.2.10';
7373
FLUSH PRIVILEGES;
7474
```
7575
@@ -78,10 +78,10 @@ Note: All steps below requires that the database engine of your choice is instal
7878
6. On your Gitea server, test connection to the database:
7979
8080
```
81-
mysql -u gitea -h 23.45.67.89 -p giteadb
81+
mysql -u gitea -h 203.0.113.3 -p giteadb
8282
```
8383
84-
where `gitea` is database username, `giteadb` is database name, and `23.45.67.89` is IP address of database instance. Omit `-h` option for local database.
84+
where `gitea` is database username, `giteadb` is database name, and `203.0.113.3` is IP address of database instance. Omit `-h` option for local database.
8585
8686
You should be connected to the database.
8787
@@ -128,7 +128,7 @@ Note: All steps below requires that the database engine of your choice is instal
128128
For remote database:
129129
130130
```ini
131-
host giteadb gitea 12.34.56.78/32 scram-sha-256
131+
host giteadb gitea 192.0.2.10/32 scram-sha-256
132132
```
133133
134134
Replace database name, user, and IP address of Gitea instance with your own.
@@ -148,9 +148,9 @@ Note: All steps below requires that the database engine of your choice is instal
148148
For remote database:
149149
150150
```
151-
psql "postgres://gitea@23.45.67.89/giteadb"
151+
psql "postgres://gitea@203.0.113.3/giteadb"
152152
```
153153
154-
where `gitea` is database user, `giteadb` is database name, and `23.45.67.89` is IP address of your database instance.
154+
where `gitea` is database user, `giteadb` is database name, and `203.0.113.3` is IP address of your database instance.
155155
156156
You should be prompted to enter password for the database user, and connected to the database.

0 commit comments

Comments
 (0)