# MySQL

MySQL is an open-source relational database server that stores and manages structured data for web applications, self-hosted services, and enterprise systems. It is open source and self-hosted, installable on Docker Hub, Proxmox, Unraid and Kubernetes (Helm).

Canonical page: https://ourlocalhost.com/app/4333/mysql

## Description

MySQL is an open-source relational database server that stores and manages structured data for web applications, self-hosted services, and enterprise systems.

## Platform availability

Available on 3 of 10 platforms: Unraid, Proxmox, Helm.

## Health score

82/100 (Excellent), based on 4 of 4 factors.
- Maintained: 100 (last commit 25 days ago)
- Popular: 82 (12,519 GitHub stars)
- Easy to install: 45 (3 install platforms, install notes)
- Light to run: 85 (512 MB minimum RAM)

## Links

- GitHub: https://github.com/mysql/mysql-server
- Docker Hub: https://hub.docker.com/_/mysql
- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=mysql
- Unraid: https://ca.unraid.net/apps/mysql-0o8cma01des2ak?q=MySQL
- Kubernetes (Helm): https://artifacthub.io/packages/helm/bitnami/mysql
- Official website: https://www.mysql.com/
- Documentation: https://dev.mysql.com/doc/

## Common questions

### How can I set up MySQL self-hosted for replication or multiple masters?

You can use ProxySQL for query balancing, or use MySQL Group Replication in Multi-Primary Mode if you need multiple masters.

### Which port should my app use for MySQL X Protocol connections?

Use port 33060 for X Protocol connections. It is separate from the usual 3306 SQL port, and using the wrong port makes the connection fail.

### How do I diagnose a MySQL server that is not responding?

Check whether the MySQL server is up and running or stopped. The article describes simple status checks and fixes to restore a non-responding server.

## 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…
- FerretDB: FerretDB is an open-source MongoDB compatibility proxy for self-hosted stacks.
- 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…
- Oracle Database: Oracle Database delivers industry leading performance, scalability, security and reliability on a choice of clustered or single-servers run…
- PostgreSQL: PostgreSQL (Postgres) is an open source object-relational database known for reliability and data integrity.
- SAP HANA: SAP HANA is a completely re-imagined platform for real-time business.
- SQLite: SQLite is a lightweight, embedded relational database engine that stores an entire database in a single file on your device.
- rethinkdb: RethinkDB is an open-source, distributed NoSQL database built for realtime web applications.

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