Because reading the README is faster than debugging

This commit is contained in:
2025-12-01 23:11:39 +01:00
parent 73ed2fac20
commit f903b2db0d

View File

@@ -5,23 +5,24 @@
[![Auth](https://img.shields.io/badge/auth-no_socket-blue)](#)
[![License](https://img.shields.io/badge/License-MIT-green)](./LICENSE)
Automated Bash installer for **MySQL on Ubuntu 24.04**, configured for password-only authentication
(no `auth_socket`, no silent root login, no surprises).
Install MySQL on Ubuntu 24.04 server.
This is a **production-focused installer**, not a lab toy.
Run it once → MySQL is installed, hardened, and ready for real workloads.
This is not a guide and not a toy.
This script is built for consistent, repeatable deployments.
---
## Why this installer exists
Different distros ship different defaults, often requiring manual cleanup. This installer standardizes configuration.
## What this installer does
## What this installer does
✔ Enforces `mysql_native_password`
✔ No socket login — predictable auth
✔ Removes anonymous users + test DB
✔ Creates `/root/.my.cnf` for CLI access
✔ Safe to re-run without wiping data
✔ Installs MySQL Server + Client
✔ Forces **password authentication for root** (`mysql_native_password`)
✔ Removes anonymous users and the test database
✔ Disables remote root access
✔ Creates `/root/.my.cnf` for passwordless root CLI access
✔ Runs non-interactively (no `mysql_secure_installation` wizard)
✔ Safe to re-run — existing data is not dropped
## 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.
---