Database Operations
Install, back up, replicate and tune MySQL, PostgreSQL, Redis and MongoDB
- Installing, Initializing, and Hardening MySQL / MariaDB on Your Server
Install the database with apt, enable it on boot, then lock it down with `mysql_secure_installation` — root password, no anonymous users, no remote root.
- MySQL Basics: Databases, Tables, Users, and Privileges
A hands-on walkthrough from logging in to creating databases and tables, adding least-privilege users, and running everyday queries.
- MySQL Backup and Recovery: mysqldump and Scheduled Backups
Take consistent logical backups with mysqldump and `--single-transaction`, then automate them with cron, gzip, and off-site copies to build a recoverable safety net for your server's databases.
- MySQL Performance Tuning: Indexes, Slow Queries, and Key Parameters
A practical path from adding indexes to reading query plans, catching slow SQL, and tuning key parameters against real load.
- Getting Started with MySQL Replication
Stream your data to a second server in real time to enable read/write splitting and hot standby.
- Installing and Getting Started with PostgreSQL
Install PostgreSQL on your VPS with apt, create roles and databases, learn the essential psql meta-commands, and open up remote access when you need it.
- Installing Redis on Your Server: Persistence and Everyday Uses
Install Redis with apt, understand RDB vs AOF persistence, and lock it down from day one — set a password, bind to localhost, and never leave it open to the internet.
- Installing MongoDB and Basic Operations
Install mongodb-org from the official repo on Ubuntu/Debian, run CRUD in mongosh, and turn on authentication so your database isn't exposed on the open internet.
- Remote Database Access and Security
Bind to localhost by default; when remote access is truly needed, use a least-privilege account plus a firewall allowlist and an encrypted channel — never expose a database port to the open internet.
- Database Migration and Data Import/Export
Move databases with mysqldump / pg_dump, handle charset and timezone gaps, pipe large tables directly, and reconcile row counts before and after.