Databases14 min read•Updated November 2026

AMD EPYC VPS for MySQL Production Servers

Quick answer

For a production MySQL or MariaDB server on an AMD EPYC VPS: install a supported version, run mysql_secure_installation, bind to localhost or a private IP, give each application its own user with least privilege, and require TLS for remote connections. Size innodb_buffer_pool_size to the plan, enable the binary log, and take consistent backups (mysqldump --single-transaction for smaller databases, Percona XtraBackup or Mariabackup for large ones) plus binlog archiving for point-in-time recovery. Add a replica for fast failover, test restores, and monitor replication lag, slow queries and disk space.

MySQL and its fork MariaDB power a huge share of the web, from WordPress and WooCommerce to Laravel and custom applications. They are easy to install and easy to run badly. This guide focuses on what turns a default install into a production database: security, backups you can restore precisely, replication and maintenance. Tuning details are in our database tuning guide.

MySQL or MariaDB?

Both are mature and compatible for typical application SQL, but they have diverged in features, replication details and tooling. Use what your application documents and supports. MySQL 8.x LTS releases and MariaDB LTS releases both receive long-term security updates; pick an LTS release and stay on it.

Install and Secure

# MariaDB from the distribution
sudo apt install -y mariadb-server
# or MySQL from Oracle's official APT repository
sudo mysql_secure_installation

The secure installation script removes anonymous users and the test database and restricts root login. Then:

  • bind-address = 127.0.0.1 if the application is on the same server, otherwise the private IP.
  • Allow port 3306 in the firewall only from application servers.
  • Require TLS for remote users: CREATE USER ... REQUIRE SSL;
  • Never let applications connect as root.
CREATE DATABASE shop CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'shop'@'10.0.0.11' IDENTIFIED BY 'long-random-password' REQUIRE SSL;
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, INDEX, DROP ON shop.* TO 'shop'@'10.0.0.11';

Core InnoDB Settings

SettingStarting point (dedicated 32 GB server)Why
innodb_buffer_pool_size20–22GKeeps data and indexes in memory
innodb_redo_log_capacity (MySQL 8.0.30+) or innodb_log_file_size2–4G totalSmoother write performance
innodb_flush_log_at_trx_commit1Full durability on commit (the safe default)
innodb_flush_methodO_DIRECTAvoids double caching
max_connections150–300Match app workers; avoid hundreds of idle connections
slow_query_logON, long_query_time = 1Find slow queries

Keep innodb_flush_log_at_trx_commit = 1 and sync_binlog = 1 for data you cannot afford to lose; relaxing them trades durability for speed.

Enable the Binary Log

[mysqld]
server_id = 1
log_bin = /var/lib/mysql/binlog
binlog_format = ROW
binlog_expire_logs_seconds = 604800   # MySQL 8; MariaDB uses expire_logs_days
sync_binlog = 1

The binary log is needed for replication and for point-in-time recovery: a backup plus the binlogs since then lets you replay changes up to just before a mistake.

Backups

ToolTypeBest for
mysqldump --single-transactionLogical, consistent for InnoDBDatabases up to tens of GB; portable
Percona XtraBackup (MySQL) / Mariabackup (MariaDB)Physical, hotLarge databases; fast restore
Binlog archivingContinuous change logPoint-in-time recovery between backups
# nightly logical backup with binlog position recorded (MySQL 8.0.26+ syntax)
mysqldump --single-transaction --routines --triggers --events \
  --source-data=2 --all-databases | gzip > /var/backups/mysql-$(date +%F).sql.gz

On older MySQL and on MariaDB the option is --master-data=2. Copy backups and binlogs off the server, encrypt them, and practise a full restore plus binlog replay with mysqlbinlog --stop-datetime on a test server.

Replication

A replica keeps a live copy on another server for fast failover and for offloading reads:

  1. Give each server a unique server_id; enable binlogs on the source.
  2. Create a replication user on the source with the REPLICATION SLAVE privilege (TLS required).
  3. Seed the replica from a consistent backup that records the binlog position, or use GTIDs for simpler positioning.
  4. Point the replica at the source (CHANGE REPLICATION SOURCE TO ... on MySQL 8.0.23+, CHANGE MASTER TO ... on MariaDB and older MySQL) and start it.
  5. Set read_only = ON (and super_read_only on MySQL) on the replica.

Monitor replica lag and errors, and rehearse promoting the replica. A replica is not a backup: an accidental DROP TABLE replicates in seconds.

Maintenance

  • Apply minor version updates promptly after reading release notes.
  • Review the slow query log weekly; add indexes or fix queries (see our tuning guide).
  • Use online schema change tools (gh-ost or pt-online-schema-change) or ALGORITHM=INPLACE/INSTANT where supported for large-table changes.
  • Purge old binlogs automatically with the expiry setting; never delete binlog files manually.
  • Keep at least 20% free disk space for temporary tables, backups and growth.

Upgrades

Major upgrades (for example MySQL 8.0 to 8.4 LTS, or MariaDB 10.11 to 11.4) change defaults and remove deprecated features. Read the upgrade notes, test on a restored copy, back up, then upgrade. For minimal downtime, upgrade a replica first, then promote it.

Monitoring

Track queries per second, connections, buffer pool hit rate, slow queries, replication lag and errors, InnoDB row lock waits and disk space. The Prometheus MySQL exporter covers these; alert on replication stopping and on backups failing (see our monitoring guide).

Sizing

DatabaseEPYC plan
WordPress or small app sharing the server2 vCores / 8 GB
WooCommerce or business app, database on the same server4 vCores / 16 GB
Dedicated database for a busy application8 vCores / 32 GB
Large datasets and heavy concurrency16 vCores / 64 GB

Notes for WordPress and WooCommerce

Most WordPress tables use InnoDB today; convert any remaining MyISAM tables so backups are consistent and crash recovery works. WooCommerce stores many order details in post meta or in its newer order tables; large shops benefit from high-performance order storage, sensible indexes and regular cleanup of expired sessions and transients. An object cache such as Redis removes many repeated queries (see our Redis guide).

Character Set and Collation

Use utf8mb4 everywhere, so emoji and all scripts are stored correctly. Mixing character sets between the server, databases, tables and connections causes subtle bugs and slow joins. Set the defaults in the server configuration and specify them explicitly when creating databases.

Time Zones

Store timestamps in UTC and convert in the application. Load the time zone tables (mysql_tzinfo_to_sql) if you use named time zones in SQL.

Production Checklist

  1. Bound to localhost or a private IP; port allowed only from app servers.
  2. Per-application users with least privilege and TLS for remote access.
  3. Binary log enabled; nightly consistent backups copied off-site.
  4. A restore plus binlog replay rehearsed on a test server.
  5. Slow query log reviewed weekly.

SkyRainCloud Plans for This Workload

MySQL performance depends on the InnoDB buffer pool fitting your hot data: a dedicated database on 8 vCores / 32 GB or 16 vCores / 64 GB holds large working sets in memory. Smaller sites share a 2–4 vCore server with their application.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

MySQL or MariaDB for production?
Both work well. Use the one your application supports, choose an LTS release, and stay consistent across environments.
How do I secure a MySQL server?
Run mysql_secure_installation, bind to localhost or a private IP, restrict the port to app servers, require TLS for remote users and give each app a least-privilege user.
How big should innodb_buffer_pool_size be?
About 50–70% of RAM on a dedicated database server, less when the application shares the server.
How do I back up MySQL without downtime?
Use mysqldump --single-transaction for InnoDB, or XtraBackup/Mariabackup for large databases, while the server keeps running.
What is point-in-time recovery in MySQL?
Restoring a backup and replaying binary logs up to a chosen moment, for example just before an accidental delete.
Is a replica enough protection?
No. Replicas copy mistakes immediately. Keep backups and binlogs as well.
How do I change large tables without locking?
Use online DDL where supported or tools such as gh-ost and pt-online-schema-change.
Should I relax innodb_flush_log_at_trx_commit for speed?
Only for data you can afford to lose. Keep it at 1 with sync_binlog = 1 for durable production data.
How do I upgrade MySQL safely?
Read the upgrade notes, test on a restored copy, back up, then upgrade; or upgrade a replica first and promote it.
Which EPYC plan suits a MySQL server?
8 vCores / 32 GB for a dedicated production database, 16 vCores / 64 GB for large datasets; smaller apps can share 2–4 vCore servers.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning