Skip to content

Commit 4b7d238

Browse files
techknowlogickGiteaBot
authored andcommitted
Update database-preparation and add note re: MariaDB (go-gitea#27232)
update DB docs per feedback. https://gitea.com/gitea/gitea-docusaurus/issues/69
1 parent 8827116 commit 4b7d238

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ menu:
1717

1818
# Database Preparation
1919

20-
You need a database to use Gitea. Gitea supports PostgreSQL (>=10), MySQL (>=5.7), SQLite, and MSSQL (>=2008R2 SP3). This page will guide into preparing database. Only PostgreSQL and MySQL will be covered here since those database engines are widely-used in production. If you plan to use SQLite, you can ignore this chapter.
20+
You need a database to use Gitea. Gitea supports PostgreSQL (>=10), MySQL (>=5.7), MariaDB, SQLite, and MSSQL (>=2008R2 SP3). This page will guide into preparing database. Only PostgreSQL and MySQL will be covered here since those database engines are widely-used in production. If you plan to use SQLite, you can ignore this chapter.
2121

2222
Database instance can be on same machine as Gitea (local database setup), or on different machine (remote database).
2323

2424
Note: All steps below requires that the database engine of your choice is installed on your system. For remote database setup, install the server application on database instance and client program on your Gitea server. The client program is used to test connection to the database from Gitea server, while Gitea itself use database driver provided by Go to accomplish the same thing. In addition, make sure you use same engine version for both server and client for some engine features to work. For security reason, protect `root` (MySQL) or `postgres` (PostgreSQL) database superuser with secure password. The steps assumes that you run Linux for both database and Gitea servers.
2525

26-
## MySQL
26+
## MySQL/MariaDB
2727

2828
1. For remote database setup, you will need to make MySQL listen to your IP address. Edit `bind-address` option on `/etc/mysql/my.cnf` on database instance to:
2929

@@ -45,7 +45,7 @@ Note: All steps below requires that the database engine of your choice is instal
4545

4646
```sql
4747
SET old_passwords=0;
48-
CREATE USER 'gitea' IDENTIFIED BY 'gitea';
48+
CREATE USER 'gitea'@'%' IDENTIFIED BY 'gitea';
4949
```
5050

5151
For remote database:

0 commit comments

Comments
 (0)