Because reading the README is faster than debugging

This commit is contained in:
2025-12-01 23:09:14 +01:00
parent 786cdcdbc0
commit db870bfdd9

View File

@@ -5,28 +5,25 @@
[![Auth](https://img.shields.io/badge/auth-socket-blue)](#)
[![License](https://img.shields.io/badge/License-MIT-green)](./LICENSE)
Automated Bash installer for **MariaDB on Ubuntu 24.04**, configured with:
Install MariaDB on Ubuntu 24.04 server.
* **Socket authentication for root** (modern, secure, no passwords lying around)
* A dedicated **admin user created during install**
* Full **local-only access** to reduce attack surface
* Automatic **hardening equivalent to mysql_secure_installation**
This is not a tutorial.
This is a **deployment tool for production environments** — opinionated, hardened, and designed to "just work".
This is not a demo and not a quick experiment.
This is a production-ready installer with consistent security and repeatability.
## Why this installer exists
The default MariaDB setup is easy — securing it properly is where most installations fail.
Because installing MariaDB is easy — but installing it *properly* is how future you avoids ulcers.
## What this installer does
✔ Enables root socket authentication
✔ Blocks remote login by default
✔ Creates admin account automatically
✔ Mirrors mysql_secure_installation hardening
✔ Supports optional password mode
✔ Safe to re-run without data loss
This script handles:
✔ Installation
✔ Service enablement
✔ Hardening & security
✔ Admin user creation
✔ Local-only access
✔ Optional password auth if needed
## What this installer does *NOT* do
It wont stop you from running the script without reading the documentation like theres no tomorrow.
Skip the README, and whatever happens next is your headache, not a bug report.
## 1. Prepare the system