You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/installation/database-preparation.en-us.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,10 @@ Note: All steps below requires that the database engine of your choice is instal
42
42
43
43
```sql
44
44
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';
46
46
```
47
47
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.
49
49
50
50
Replace username and password above as appropriate.
51
51
@@ -69,7 +69,7 @@ Note: All steps below requires that the database engine of your choice is instal
69
69
For remote database:
70
70
71
71
```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';
73
73
FLUSH PRIVILEGES;
74
74
```
75
75
@@ -78,10 +78,10 @@ Note: All steps below requires that the database engine of your choice is instal
78
78
6. On your Gitea server, test connection to the database:
79
79
80
80
```
81
-
mysql -u gitea -h 23.45.67.89 -p giteadb
81
+
mysql -u gitea -h 203.0.113.3 -p giteadb
82
82
```
83
83
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.
85
85
86
86
You should be connected to the database.
87
87
@@ -128,7 +128,7 @@ Note: All steps below requires that the database engine of your choice is instal
128
128
For remote database:
129
129
130
130
```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
132
132
```
133
133
134
134
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
148
148
For remote database:
149
149
150
150
```
151
-
psql "postgres://gitea@23.45.67.89/giteadb"
151
+
psql "postgres://gitea@203.0.113.3/giteadb"
152
152
```
153
153
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.
155
155
156
156
You should be prompted to enter password for the database user, and connected to the database.
0 commit comments