# Seafile MariaDB

Seafile MariaDB is a MariaDB database server container packaged to serve as the database backend for a Seafile file-sharing deployment. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/5398/seafile-mariadb

## Description

Seafile MariaDB is a MariaDB database server container packaged to serve as the database backend for a Seafile file-sharing deployment. It runs the widely used LinuxServer.io MariaDB image, letting Seafile store its metadata in a full SQL database instead of the default SQLite file, a better fit for multi-user homelab setups that need more reliable and faster storage.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

14/100 (Low), based on 3 of 4 factors.
- Maintained: 0 (GitHub repository no longer exists)
- Easy to install: 15 (0 install platforms, install notes)
- Light to run: 50 (2 GB minimum RAM)

## Links

- Official website: https://mariadb.org/
- GitHub: https://github.com/orgs/linuxserver/packages/container/package/mariadb
- Unraid: https://ca.unraid.net/apps?q=seafile-mariadb&app=umdi0e

## Common questions

### What setup script should I run for Seafile Pro with MariaDB?

Run ./setup-seafile-mysql.sh from the seafile-pro-server folder and answer the setup questions. This first-time wizard creates Seafile's settings and tells it how to use your MariaDB database, and skipping it leaves the server without a working configuration.

### What should I record when Seafile first starts in Docker?

Write down the Seafile data directory and the fileserver port from the first-start log. The data directory holds your files and settings, and the fileserver port must be open or sync clients cannot connect.

### What reverse proxy configuration has worked for Seafile on Docker?

A user reports running Seafile on Docker with an Nginx reverse proxy on the host and says it works well.

### What database authentication errors have users seen with Seafile Docker and MariaDB?

Users have reported Access denied for user 'root' and Access denied for user 'seafile' errors while following the official Docker guide with a MariaDB backend.

## Alternatives

- Apache Cassandra
- CockroachDB: CockroachDB is a distributed SQL database for developers and operators of transactional applications that need horizontal scaling and resil…
- CouchDB: CouchDB is a document-oriented NoSQL database with a RESTful HTTP/JSON interface for storing, querying, and synchronising JSON documents ac…
- IBM DB2: DB2 offers industry leading performance, scale, and reliability on your choice of platform from Linux to z/OS.
- Microsoft SQL Server: SQL Server delivers on Microsoft’s Data Platform vision by helping your organization manage your data by enabling you to store data from st…
- MongoDB: MongoDB is an open-source, document-oriented NoSQL database that stores flexible, JSON-like documents, helping developers and self-hosters…
- PostgreSQL: PostgreSQL (Postgres) is an open source object-relational database known for reliability and data integrity.
- SQLite: SQLite is a lightweight, embedded relational database engine that stores an entire database in a single file on your device.

---
Source: Our Local Host (https://ourlocalhost.com/app/5398/seafile-mariadb), the self-hosted and open-source app directory.
