MySQL Consulting Services

    For teams running MySQL in production, self-hosted or on Amazon RDS, Aurora, Azure, Google Cloud SQL or HeatWave. Queries slow down as the data grows, peak traffic ends in connection errors, replicas lag, and the next upgrade threatens to break scripts and drivers. DharmOps finds the cause, fixes it or runs the upgrade, and stays on to support it.

    An engineer replies within 24 hours. Or describe the problem first, and see how we work on databases.

    Common MySQL Problems We Fix

    Most teams don't call it a database problem at first. They notice a slow page, a connection error at peak or a replica showing yesterday's data. Release and support details are from the MySQL release model and the Amazon RDS for MySQL version policy.

    Pages slow down and CPU sits near 100%

    Queries that returned in milliseconds now take seconds and reports time out. The usual causes are queries that can't use an index, indexes that don't match how the application filters, a buffer pool sized for a smaller dataset, and one moderately slow query run thousands of times an hour. A bigger instance helps for a few weeks, then the same queries catch up.

    "Too many connections" and deadlocks at peak

    Traffic spikes end in error 1040, too many connections, or error 1213, deadlock found when trying to get lock. Each connection costs memory and a thread, and long transactions holding locks make it worse. Raising max_connections usually moves the failure rather than fixing it.

    Replicas lag and failover has never been tested

    Reads go to a replica that is minutes behind, so users see stale data. A read replica spreads load but doesn't fix a single point of failure, and many teams have never promoted one under pressure. When the primary goes down, nobody is sure what happens next.

    The next upgrade breaks scripts and drivers

    MySQL only removes features at the start of a new long-term support (LTS) series, so each LTS upgrade can break what used to work. The old CHANGE MASTER TO and START SLAVE replication commands are gone, the mysql_native_password plugin is no longer on by default, and defaults change. Some queries also pick slower plans on the new optimizer.

    The version is near or past end of support

    An LTS series gets five years of Premier support and three of Extended support, and the faster Innovation releases are only supported until the next one ships. On Amazon RDS and Aurora, a major version past standard support moves to Extended Support automatically, billed per vCPU per hour on every instance.

    Nobody can say whether to stay on MySQL

    Some teams are weighing MariaDB, some PostgreSQL, some a managed service, often because of licensing questions or doubts about MySQL's future. Moving engines changes SQL behaviour, replication, tooling and failover. Without numbers from your own workload, the decision gets made on opinion.

    MySQL Consulting at DharmOps

    MySQL consulting is diagnosing, fixing, upgrading and supporting the MySQL databases your product runs on: the queries and indexes, InnoDB settings, connections, replication and failover, backups, and the version and support track it runs on. It is part of our database engineering work.

    MySQL Health Check & Diagnostic

    • Top queries from the slow query log and Performance Schema
    • InnoDB buffer pool, redo log and memory settings
    • Indexes: missing, unused and duplicated
    • Connections, threads and long-running transactions
    • Replication, failover and backup review
    • Version, support track and upgrade readiness

    Performance Tuning

    • Slow queries traced with EXPLAIN ANALYZE
    • Composite and covering indexes that match your filters
    • Queries rewritten so they can use an index
    • Buffer pool and InnoDB settings sized to your data
    • Connection pooling with ProxySQL or in the application
    • Deadlocks and lock waits traced to the transactions behind them

    How we debug a slow SQL query

    Version Upgrades

    • LTS or Innovation track chosen for your release pace
    • MySQL Shell upgrade checker run before anything changes
    • Removed statements, auth plugins and drivers fixed first
    • Slow query logs compared before and after
    • Amazon RDS Blue/Green or replica-based upgrades
    • Rehearsal on a copy at production size

    Replication & High Availability

    • GTID replication and replica lag fixed
    • Group Replication and InnoDB Cluster with MySQL Router
    • Galera clusters on MariaDB or Percona XtraDB Cluster
    • Read and write splitting without stale reads
    • Failover tested, with a written runbook

    Backups & Recovery

    • Physical backups with Percona XtraBackup or MySQL Enterprise Backup
    • Logical backups with MySQL Shell dump utilities
    • Point-in-time recovery from binary logs
    • Restores tested, not just scheduled
    • Written recovery time and data loss targets

    Database backup and recovery

    Scale & Architecture

    • Schema and data type review for the next stage of growth
    • Partitioning for large, time-ordered tables
    • Archiving old data out of hot tables
    • Sharding with Vitess, only once one primary can't keep up
    • Online schema changes without long locks

    Migration & Hosting

    • Amazon RDS, Aurora, Azure, Google Cloud SQL or HeatWave
    • MySQL to MariaDB, or MariaDB back to MySQL
    • MySQL to PostgreSQL, with SQL and data types converted
    • Self-hosted to managed, or managed back to self-hosted
    • Row counts and checksums compared before cutover

    PostgreSQL vs MySQL compared

    Operations & Ongoing Support

    • Fixes when a query, replica or failover breaks
    • Planned minor updates and LTS upgrades
    • Capacity planning as data and traffic grow
    • Query and schema review for new features
    • Ongoing support from the engineers who did the work

    Who It's For

    Companies whose product, store or internal systems run on MySQL or MariaDB and who see slow queries, connection errors, deadlocks or replica lag. Also teams facing a version near end of support, or deciding whether to stay on MySQL.

    What It Solves

    Slow pages and reports, errors at peak, stale reads, failover nobody has tested, upgrades that break scripts, and a database that only one person understands.

    How It Starts

    With a diagnostic, not a bigger instance or a quote. The diagnostic decides whether to tune what you have, upgrade first, add high availability, change hosting, or move to another engine.

    What It Isn't

    We don't resell MySQL Enterprise subscriptions or hosting, and we don't take over routine administration such as user account requests. Pipelines and warehouses fed from MySQL sit with Data Engineering, and cloud spend outside the database with Data Cost Optimization.

    Where It Sits in Your Stack

    MySQL often sits under the web application, the online store and the internal tools, all at once. When a page is slow or checkout stalls, the cause is often a query that can't use an index or a lock held by another transaction, not the application code that sent it.

    What Changes When MySQL Is Fixed

    What DharmOps puts in place in a MySQL consulting engagement and what it means for you
    What we put in placeWhat it means for you
    Queries, indexes and InnoDB settings tuned to your real workloadPages and reports get faster without buying a bigger instance
    Connections and transactions sized to your trafficPeak hours stop ending in connection errors and deadlocks
    Replication monitored and failover rehearsedReads stay current, and losing the primary is a procedure, not an outage
    A supported LTS version, upgraded on a rehearsed planSecurity fixes keep arriving, scripts keep working, and no Extended Support line appears on the bill
    Backups restored on a schedule, with point-in-time recoveryYou know how long recovery takes and how much data is at risk before you need to
    A stay-or-move decision backed by your own workloadMySQL, MariaDB or PostgreSQL is chosen on numbers, not on forum threads

    What You Receive and What You Provide

    What You Receive

    Diagnostic output

    A written assessment of your MySQL: top queries, InnoDB settings, indexes, connections, replication, backups and version status, with fixes ranked by impact and effort.

    Upgrade plan

    If your version is near or past end of support, the target LTS or Innovation release, the upgrade checker results, the removed statements and drivers to fix, the rehearsal plan, and a cutover plan with a rollback.

    Performance fixes

    Index, query, configuration and schema changes, each tied to the query or metric it improves and measured against the baseline.

    High availability setup

    Replication, Group Replication, InnoDB Cluster or Galera set up or fixed, with a failover test result and the runbook to repeat it.

    Recovery setup

    Physical or logical backups, binary log retention for point-in-time recovery, a restore that has been tested, and written recovery time and data loss targets.

    Monitoring and alerts

    Slow queries, connections, replica lag, deadlocks, disk and buffer pool use, with alerts that point to a runbook.

    Runbooks

    Step-by-step procedures for failover, restore, upgrades, connection exhaustion and a replica that stops applying changes, written so a junior engineer could follow them alone at 2am.

    Documentation and training

    Why each setting, index and design choice is the way it is, and sessions for the developers who write queries against it.

    Ownership

    The configuration, migrations, scripts and documentation belong to you. Nothing proprietary sits between your application and your database.

    What You Provide

    1. A read-only monitoring user with PROCESS and access to performance_schema, not root, and the slow query log turned on.
    2. People who own the application: someone who knows which queries matter most and which features depend on them.
    3. Your critical workloads and the windows the business can accept for maintenance, such as a quiet Sunday morning.
    4. Your current setup: MySQL or MariaDB version, data size, replicas, and where it runs: self-hosted, RDS, Aurora, Azure, Cloud SQL or HeatWave.
    5. Infrastructure and security contacts who can approve network, access and change requests.
    6. Early notice of regulated data such as health, financial or personal data, so handling is agreed before work starts.

    How an Engagement Works

    Six steps, in order. Each ends with something you can see, and nothing moves on until you've approved it.

    1. Discovery call
    2. Diagnose
    3. Prioritize
    4. Fix
    5. Stay

    Discovery Call

    We talk through what you're seeing in MySQL, the version and hosting you run, and what you've already tried.

    • You receive: a clear answer on whether MySQL consulting is the right next step
    • You provide: a short description of the symptoms, your MySQL version and where it runs
    • Approval: both sides agree there is something to diagnose

    Diagnostic

    The step after the discovery call, and the gate before any scope is set. Using a read-only user, we review your top queries, InnoDB settings, indexes, connections, replication, backups and upgrade readiness.

    • You receive: a written plan ranking fixes by impact and effort, an upgrade plan if your version is near end of support, and the cost and risk behind each option
    • You provide: the monitoring user, the slow query log turned on, and time with the people who own the application
    • Approval: you approve the plan

    Scope is quoted after this step, not before

    Design

    We design the changes: indexes, queries, settings, pooling, replication and, for upgrades or migrations, the method and cutover plan.

    • You receive: a design document covering each change, its expected effect and how it is rolled back
    • You provide: sign-off from your infrastructure and security contacts
    • Approval: you sign off on the design before any change starts

    Fix and rehearse

    We apply the fixes found in the diagnostic, measured against the baseline. Upgrades and migrations are rehearsed on a copy at production size until the cutover holds no surprises.

    • You receive: changes delivered as versioned migrations and configuration, rehearsal results, and documentation written as we go
    • You provide: a named contact who answers questions promptly, and decisions on any change we flag
    • Approval: each change is accepted against criteria agreed in the design

    Cut over

    For upgrades and migrations, the cutover runs in the window you chose, with row counts, checksums and slow query logs compared before traffic moves. The old instance stays available until you approve retiring it.

    • You receive: matching data, query timings compared against the baseline, and a log of what was done
    • You provide: someone on your side to confirm the application behaves as expected
    • Approval: you approve retiring the old version or instance

    Ongoing support

    Support starts at cut over, with the same engineers who did the work. The first weeks get closer attention, because that is when production surprises appear.

    • You receive: fixes when something breaks, planned minor updates and LTS upgrades, capacity planning, query review for new features, and runbooks that stay current
    • You provide: a named contact, and early notice when traffic, data size or features are about to change
    • Approval: support scope is agreed in writing before support begins

    Continues after cut over, with the same engineers

    Timeline

    How Timing Works

    The diagnostic produces a timeline with milestones, each tied to something you can verify, not only a date. Dates move when a dependency on either side moves, and we tell you the same day it happens. The dependencies that matter most:

    • Databases: how many MySQL instances and schemas are involved, and how large the biggest tables are.
    • Version gap: how many LTS series an upgrade crosses, and which removed features, plugins and drivers come with it.
    • Replicas and failover: how many replicas, clusters and failover tools have to move with the primary.
    • Hosting: self-hosted, Amazon RDS, Aurora, Azure, Google Cloud SQL or HeatWave, and whether that changes as part of the work.
    • Access: how quickly the monitoring user, cloud metrics and change approvals are granted.
    • Change windows: how often the business can accept a maintenance window, and any compliance review it needs first.

    How We Work on Production Databases

    The same method we use on MySQL: measure the real workload, fix the cause, and change nothing in production without a rehearsal. These two engagements ran on PostgreSQL and SQL Server.

    Reports timing out on a 340GB database

    Situation
    An operations platform's main report took 3–4 minutes and often timed out, with disk I/O saturated.
    What we did
    Found memory settings left at defaults, dead rows piling up and an index that didn't match the report's filters. Tuned memory, reclaimed 48 GB, built a covering index without locking and partitioned the 180-million-row events table by month.
    Result
    4 min → 17 s, 60% less disk I/O at peak, zero downtime.

    Read the 340GB database case study

    A city traffic platform on two database engines

    Situation
    Sensor ingestion slowed and peak-hour reports timed out on an 800-million-row dataset split across PostgreSQL and SQL Server.
    What we did
    Partitioned the largest tables, matched indexes to the real queries, put a connection pooler in front of the database, and replaced full exports with change data capture.
    Result
    85% lower ingestion latency, reports 12x faster, zero downtime.

    Read the traffic platform case study

    More on our work in all case studies.

    Why Teams Bring DharmOps In for MySQL

    We diagnose before we recommend.We read your slow query log, Performance Schema and settings through a read-only user before suggesting a bigger instance, a new version, sharding or a different engine. The written plan comes before any timeline or price.

    We rehearse upgrades at production size.Every upgrade and migration runs on a copy of your data first, with the upgrade checker, removed statements and slow query logs compared, so the cutover is the rehearsal you've already seen work.

    We have no stake in which engine you pick.We work on MySQL, MariaDB and PostgreSQL, and we don't resell any of them. If staying on MySQL is cheapest for your workload, the plan says so. Our engineers bring hands-on, cross-platform database expertise.

    You own it, and we stay.Configuration, migrations and runbooks are yours, whether MySQL runs on your servers or on a managed service. After the work, DharmOps stays on to support it.

    How We Handle Your Systems

    Your MySQL database holds your customers' data. Giving an outside team access to it is a serious decision. These are the rules we work by.

    • NDA before any access. Signed before we see anything.
    • Least access. A read-only monitoring user first. Write access only for approved changes.
    • Approval before access. You approve each access level before we use it.
    • Your data stays where it lives. We work inside your environment, in the cloud or on-premises.
    • Deletion we verify. When work ends, anything we held is deleted and the deletion is confirmed.
    • Written incident procedure. If something goes wrong, there is a documented process, not improvisation.

    MySQL Questions Teams Ask Before Booking

    What does a MySQL consultant do?

    A MySQL consultant diagnoses and fixes the database your application runs on: slow queries, high CPU, connection errors, deadlocks, replication lag, failover and backups. They also plan version upgrades, scale the database as data grows, and move MySQL to a managed service, to MariaDB or to PostgreSQL. DharmOps also stays on to support the database after the work is done.

    What is the difference between MySQL LTS and Innovation releases?

    LTS (long-term support) releases only receive necessary fixes, and features are added or removed only in the first release of a new LTS series. Each LTS gets five years of Premier support and three years of Extended support. Innovation releases bring new features and behaviour changes, including removals, and are supported only until the next Innovation release. Both are production quality.

    What breaks when upgrading to a new MySQL LTS version?

    Anything that relied on features removed in that series. In MySQL 8.4, for example, the old replication statements such as CHANGE MASTER TO, START SLAVE and SHOW SLAVE STATUS were removed, mysql_native_password stopped being enabled by default, and several InnoDB defaults changed. Old drivers and scripts are the usual casualties. Running MySQL Shell's upgrade checker and comparing slow query logs on a rehearsal copy finds them first.

    Can we skip MySQL versions when upgrading?

    In-place upgrades are supported from one LTS series to the next, so an older version may need a stop at each LTS on the way. A logical dump and reload, or replication to a new instance on the target version, can cross more versions in one move, but needs more testing. The upgrade checker shows what has to change at each step.

    What happens to MySQL on Amazon RDS after end of standard support?

    RDS moves the major version to Extended Support automatically. You keep getting critical fixes for a limited time, but you pay an extra charge per vCPU per hour on every instance still on that version, replicas included, and the rate rises after the second year. Upgrading to a supported version stops the charge.

    Why is my MySQL database slow?

    The usual causes are queries that can't use an index (functions on indexed columns, leading-wildcard LIKE, mismatched data types or collations), indexes that don't match the filters and sort order, an InnoDB buffer pool too small for the working set, long transactions holding locks, and too many connections. The slow query log, Performance Schema and EXPLAIN ANALYZE show which one applies.

    How do I fix "too many connections" in MySQL?

    Find out why connections pile up before raising the limit. max_connections defaults to 151, and each connection uses memory and a thread. Common causes are slow queries holding connections, application pools sized larger than the database can serve, and connections that are never closed. Connection pooling in the application or with ProxySQL, plus faster queries, usually fixes it for good.

    What causes "Deadlock found when trying to get lock" in MySQL?

    Error 1213 means two transactions each hold a lock the other needs, so InnoDB rolls one back. It usually comes from transactions that touch the same rows in different orders, missing indexes that make InnoDB lock more rows than needed, or long transactions. SHOW ENGINE INNODB STATUS shows the latest deadlock. Consistent access order, shorter transactions and the right indexes reduce it.

    Group Replication, InnoDB Cluster or Galera: which should we use?

    Group Replication is MySQL's built-in replication with automatic failover, and it needs a primary key on every table. InnoDB Cluster packages Group Replication with MySQL Shell for setup and MySQL Router to send traffic to the right node. Galera is the synchronous cluster used by MariaDB and Percona XtraDB Cluster. Which fits depends on your MySQL flavour, write pattern and tolerance for latency.

    Should we switch from MySQL to MariaDB or PostgreSQL?

    Sometimes. MariaDB started as a MySQL fork, but the two have drifted apart, so moving still means testing SQL behaviour, replication and tools. PostgreSQL is a different engine, with different SQL, data types and operations. We measure your workload, list what depends on MySQL-specific behaviour, and cost each path before you decide.

    Is MySQL free for commercial use?

    MySQL Community Edition is open source under the GPL version 2 and can be used commercially, with obligations if you distribute it inside your own software. MySQL Enterprise Edition is a paid Oracle subscription that adds tools such as Enterprise Backup, monitoring and support. Managed services such as RDS and Cloud SQL include the licence in their price.

    When does MySQL need sharding?

    Later than most teams think. Tuning queries and indexes, adding read replicas, partitioning large tables and archiving old data carry a single primary a long way. Sharding with a tool like Vitess makes sense once write volume or data size is beyond what one primary can serve, because it adds routing, schema and operations work to every change.

    Can MySQL be used for vector search?

    Recent MySQL releases include a VECTOR data type for storing embeddings, and MySQL HeatWave on OCI, AWS and Azure adds in-database vector search for AI applications. For large vector workloads, index type, memory and the load on the primary need planning, and a dedicated replica or service may suit better.

    How is MySQL consulting priced?

    Scope is quoted after the diagnostic, once we have looked at your database, and before you commit. Cost depends on the number of instances and environments, data size, the version gap for upgrades, replicas and clusters, hosting, compliance requirements and whether support continues afterward.

    What happens after the work is done?

    The same engineers stay on. They fix breaks, run planned minor updates and LTS upgrades, plan capacity as data and traffic grow, and review queries and schema changes for new features. The runbooks and documentation stay current, so your database doesn't depend on one person.

    Release and support policies are from the MySQL manual's Innovation and LTS releases and what's new in MySQL 8.4 pages, and Amazon RDS details from the MySQL on Amazon RDS versions page.

    Database Engineering Use Cases by Industry

    A slow or fragile database costs different things in different industries: a missed report deadline, a failed recovery, a checkout that stalls at peak. The cause is usually in the queries, the configuration or the recovery plan.

    Database Engineering for Banking & Insurance

    Moving off Oracle for licensing cost is a large project. We fix the design problems first so they don't move with you, and rehearse the migration in full against a copy of production before the cutover.

    Database Engineering for Healthcare

    Clinical and claims systems can't afford an untested recovery. We rehearse failover and test restores, and write the runbooks, so recovery doesn't depend on someone remembering the steps.

    Database Engineering for Retail & eCommerce

    A product page or checkout that slows at peak usually traces to a query plan or a connection limit, not the size of the server. We measure it and fix the cause before adding hardware.

    Database Engineering for SaaS & Software

    Dashboards that were fast at launch slow down as customer data grows. We find the query and index causes, and every change lands in your repository for your engineers to review.

    Database Engineering for Manufacturing

    End-of-day reports that run for hours can block order entry. We trace the heaviest reports to their queries and processing logic, and fix them without changing what the report shows.

    Database Engineering for Logistics

    Shipment and fleet data arrives in constant high-volume writes. We tune ingestion and keep peak-hour reports finishing, with the work tested before it reaches production.

    Start With a Conversation About Your MySQL

    If your queries are slowing down, peak traffic ends in errors, or an upgrade keeps slipping, the first step is a 30-minute discovery call.

    MySQL and HeatWave are trademarks of Oracle and/or its affiliates.