Databases tutorials
Installing, securing and optimizing MySQL, PostgreSQL, MongoDB and Redis databases, plus users, replication, migration and remote access.
How to connect an app to a remote database
Allow access to a database from another server, securely: bind address, dedicated user and firewall.
Updated 7/20/2026DatabasesHow to automate database backups with cron
Schedule daily MySQL or PostgreSQL backups with cron, with automatic retention, and send them to a Backup Box.
Updated 7/20/2026DatabasesHow to migrate a database between servers
Move a MySQL or PostgreSQL database to a new server with minimal downtime, using dump and restore.
Updated 7/20/2026DatabasesHow to secure MongoDB with authentication
By default, MongoDB runs without a password. Here is how to enable authentication and create an admin user.
Updated 7/20/2026DatabasesHow to install Redis and use it as a cache
Speed up your app with Redis: install, secure and use it as a cache or message broker.
Updated 7/20/2026DatabasesHow to create users and databases in PostgreSQL
Create roles, databases and grant privileges in PostgreSQL, step by step.
Updated 7/20/2026DatabasesHow to set up replication in PostgreSQL
Set up a standby (replica) that copies your PostgreSQL data in real time, for redundancy and distributed reads.
Updated 7/20/2026DatabasesHow to install and secure PostgreSQL on Ubuntu
Install the most advanced open-source database and configure it safely: password, scram-sha-256 authentication and controlled access.
Updated 7/20/2026DatabasesHow to optimize MySQL performance
Basic settings for a fast MySQL: buffer pool, indexes, slow queries and how much RAM you need.
Updated 7/20/2026DatabasesHow to install and secure MySQL on Ubuntu
Install MySQL or MariaDB on your VPS and secure it properly: root password, removing test accounts and controlled access.
Updated 7/20/2026DatabasesHow to create a MySQL user and grant privileges
Create dedicated MySQL users per application and grant exactly the privileges needed, step by step.
Updated 7/20/2026