Connect any database. Ask in plain English.

Try free
← Blog

Free MySQL Database Hosting: 8 Options Compared, Now That Aiven and PlanetScale Have No Free Tier (2026)

Where to get a MySQL database for $0, checked 1 December 2026: free storage from 5 MB to 100 GB, connection limits, which ones sleep, need a card or expire. TiDB Cloud Starter gives 5 GiB per instance with no card, Oracle's Always Free HeatWave 50 GB; Aiven stopped creating free MySQL on 6 November and deletes the rest on 21 December, and PlanetScale's cheapest MySQL is $39 a month.

Fastero Dev TeamFastero Dev Team2026-12-01Last updated: 2026-12-02

Free MySQL is harder to find than free Postgres, and it got harder this autumn: Aiven, one of the few no-card free MySQL plans, is being retired this month, and PlanetScale dropped its free tier in 2024. We read every provider's pricing page and docs on 1 December 2026, put the limits side by side, and ran MySQL 8.4 in Docker on Windows, the free option that never expires, connecting from Python with a connection string.

The short answer: for a free hosted database that speaks MySQL and has no end date, start with TiDB Cloud Starter: 5 GiB of row storage and 50 million request units a month per instance, up to five instances, 400 connections and no credit card, though it's TiDB, a MySQL-compatible database, not MySQL itself. For real MySQL, Oracle's Always Free MySQL HeatWave gives one 50 GB DB system, but needs a card at sign-up and isn't reachable from the internet. Railway runs MySQL from $1 of credit a month; Clever Cloud's DEV plan holds 10 MB. AWS RDS and Google Cloud SQL are trials, Aiven's free MySQL is being deleted, and PlanetScale has no free tier. Checked 1 December 2026.

Fastero

Connect your database. Ask questions. Get dashboards.

Postgres, BigQuery, Snowflake, and 10+ sources — live-connected, AI-powered, no dashboard builder learning curve.

Try free →

Free MySQL hosting compared

Checked 1 December 2026, from each provider's own pages:

Provider Free storage Connections and compute Sleeps, pauses or expires Card needed
TiDB Cloud Starter (MySQL-compatible) 5 GiB row + 5 GiB columnar per instance, up to 5 instances 50 million RUs a month per instance; 400 connections Scales to zero when idle; refuses new connections once the month's quota is used No
Oracle MySQL HeatWave, Always Free 50 GB, plus 50 GB of backup storage One DB system on the MySQL.Free shape No end date; idle accounts may be suspended after 30 days Yes, for identity checks
Railway Free 0.5 GB volume Up to 1 vCPU and 0.5 GB RAM, paid from $5 of credit a month Sleeps without connections; stops when the $5 runs out No
Clever Cloud DEV 10 MB 5 connections, shared server Not stated; no backups No
freesqldatabase.com From 5 MB, 1 database Not stated Not stated Not stated

And the ones that look free but are trials, or gone:

Provider What you get When it ends
AWS RDS for MySQL Free plan on db.t3.micro or db.t4g.micro, paid from $100 to $200 of credits; no payment method for most new customers Account closes after 6 months or when the credits run out; data kept 90 days
Google Cloud SQL A 30-day trial instance: 8 vCPUs, 64 GB RAM, 100 GB; billing account with a card Stops serving after 30 days; kept 90 more, then deleted
Azure Database for MySQL 750 hours of a Burstable B1ms Flexible Server, 32 GB of storage and 32 GB of backup storage, for first-time users 12 months
Aiven for MySQL No new free services since 6 November 2026 Powered off and deleted on 21 December 2026
PlanetScale No free plan since 8 April 2024; MySQL (Vitess) from $39 a month n/a

A dot chart of free MySQL storage on a log scale: freesqldatabase.com 5 MB, Clever Cloud DEV 10 MB with 5 connections, Railway Free 0.5 GB, TiDB Cloud Starter 5 GiB per instance with 400 connections, Oracle MySQL HeatWave 50 GB on a private network only, all with no end date, and the Google Cloud SQL trial at 100 GB for 30 days

Free MySQL storage by provider, from their own pages, 1 December 2026. AWS isn't shown: its free plan is paid from credits, with no storage figure on the page.

TiDB Cloud Starter

TiDB is a distributed database that speaks MySQL's protocol: in TiDB's words, "MySQL-compatible: provides MySQL protocol compatibility." Its Starter plan is the easiest free MySQL-style database to start with: per instance, 5 GiB of row storage, 5 GiB of columnar storage and 50 million request units (RUs) a month, for the first five instances in an organization, 25 GiB and 250 million RUs in total. "No credit card is required to get started," and compute "scales to zero when idle".

The limits are firm. When an instance uses up its quota, "it immediately denies any new connection attempts until you increase the quota or the usage is reset upon the start of a new month", and existing connections are throttled. A free instance takes up to 400 concurrent connections, a transaction can't run longer than 30 minutes, and connections need TLS, on port 4000, with a user name that starts with the instance's prefix (such as 3pTAoNNegb47Uc8.root). Because it's TiDB rather than MySQL, check that your SQL and tools work before you build on it. Past the allowance, request units cost from $0.10 per million, with a spending limit you set.

Oracle MySQL HeatWave, Always Free

Oracle's Always Free tier includes one real MySQL server: "All tenancies get a standalone MySQL HeatWave DB system with a single node HeatWave cluster in the home region." It "must use the MySQL.Free shape", has "a fixed storage size of 50 GiB to store data and log files", and gets 50 GB of backup storage.

Three catches:

  • It isn't on the internet. "The DB system endpoints are not directly accessible from the internet." You reach it from a compute instance in the same network, a VPN, a Bastion session or a network load balancer, which Oracle calls a security risk.
  • Backups are minimal. "Automatic backup with 1 day retention is enabled by default." Manual backups and point-in-time recovery aren't available, and there's no high availability, read replica, SLA or Oracle Support.
  • The account needs a card and some use. Oracle uses your "credit/debit card information for account setup and identity verification", and "Accounts left idle for 30 days or more may be deemed abandoned and become eligible for suspension or termination."

Railway

Railway's Free plan, $0 with no card, includes "Postgres, Redis, MySQL, MongoDB, and more as single-node databases", a 0.5 GB volume, and $5 of resource usage a month. "Databases sleep the same way, wake on the next connection, and keep their data." When the $5 is spent, services stop until the next month, and volumes are kept.

How long $5 lasts depends on how long MySQL is awake. Railway says $5 covers about 500 MB of RAM around the clock. Our MySQL 8.4 container below used 437 MiB of memory sitting idle, so if Railway's uses about the same, RAM alone takes about $4.60 of the $5 for a month of MySQL being awake, leaving little for CPU and storage. It suits a database that's quiet most of the day better than one an app holds a connection to all day.

Clever Cloud DEV

Clever Cloud's MySQL add-on runs Percona Server, with 8.4 by default and 9.7 available. Its DEV plan "is free, for testing purposes only. It has lower performances, no backups, extensions nor SLA." Clever Cloud's public plan catalogue lists the limits: 10 MB of data, 5 connections, and shared memory and CPU. Enough to learn SQL or test a connection string, not for an app. New accounts also get free credits "with no payment card required".

AWS RDS for MySQL

AWS changed its free tier on 15 July 2025, and new accounts now get credits rather than 12 months of free use: $100 at sign-up and up to $100 more as you try services. "Free plan is available on db.t3.micro and db.t4g.micro instances" for MySQL, MariaDB, PostgreSQL and SQL Server Express. The limit is time: "The account closes on its own 6 months after you open it or when your credits run out, whichever comes first." AWS keeps the data for 90 days, during which upgrading to a paid plan restores access. On payment: "A payment method isn't required to sign up for most new customers", though AWS may ask for one to verify your identity.

Google Cloud SQL free trial

Cloud SQL has no always-free tier, but its trial instance is the largest free MySQL on this list, "for up to 30 days without any financial commitment": Enterprise Plus edition, 8 vCPUs, 64 GB of memory and 100 GB of storage, which you can't change. You need a new Google Cloud project and a billing account "with your credit card or other payment method". After 30 days "the instance stops serving requests", and it's deleted after a further 90 days unless you upgrade. There are no backups during the trial, and connections over the public internet are charged as data transfer. It's for evaluating Cloud SQL, not hosting.

Azure Database for MySQL

Microsoft's pricing page says first-time users can "Use Azure Database for MySQL Flexible server with limited resources for testing and development purposes for 12 months", alongside a $200 credit for 30 days. The pricing page doesn't say what the limited resources are; Microsoft's free account page does: 750 hours of a Burstable B1ms Flexible Server, 32 GB of storage and 32 GB of backup storage.

Aiven and PlanetScale: no longer free

Aiven retired its free MySQL tier. From 6 November 2026, "You cannot create new free Aiven for MySQL services. Existing free services keep running." Then: "On December 21, 2026, remaining free Aiven for MySQL services will be powered off, and their data and backups will be deleted." If you have one, upgrade it to the Developer plan ($5 a month for 1 CPU, 1 GB RAM and up to 8 GB of storage, with the same connection details) or export it with mysqldump before that date. Aiven's free tier still covers PostgreSQL, Kafka, OpenSearch and Valkey; see our free Postgres database guide.

PlanetScale has had no free plan since it announced in March 2024: "Our Hobby plan will be retired on April 8th, 2024." Its MySQL-compatible Vitess databases now start at $39 a month for a three-node PS-10 cluster, plus storage. Its $5 single-node plan is Postgres, not MySQL.

Small free MySQL sites, and PythonAnywhere

Sites such as freesqldatabase.com offer one MySQL database "Starting from 5MB" with "Remote connections allowed", from a site whose footer reads 2017. Fine for an exercise, not for data you'd miss. PythonAnywhere, long a free MySQL host for students, now includes MySQL only on free accounts made before 15 January 2026; newer ones need its $10 Developer plan. More in our PythonAnywhere alternatives.

How to choose a free MySQL database

  • A side project that must not expire: TiDB Cloud Starter, after checking your queries run on TiDB.
  • Real MySQL with room to grow: Oracle's Always Free HeatWave, if your app also runs inside Oracle Cloud.
  • An app and its database in one place: Railway, for a database that's quiet most of the day.
  • Practice and coursework: MySQL in Docker on your own machine, below, or Clever Cloud's DEV plan for a hosted 10 MB.
  • Trying a managed service before paying: the Cloud SQL trial for 30 days, or RDS on AWS's free plan for up to 6 months.
  • Anything with data you'd miss: check backups first. Clever Cloud DEV has none, Oracle keeps one day, and the Cloud SQL trial none.

Connect any database. Ask in plain English.

Start free →

Run MySQL free on your own machine

For learning and development, MySQL in Docker costs nothing and has no limits but your machine's. On 1 December 2026, on Windows with Docker 29.5, we started MySQL 8.4 on a spare port (53306, so it can't clash with a MySQL already on 3306):

$ docker run -d --rm --name mysql-local -e MYSQL_ROOT_PASSWORD=change-me-root -e MYSQL_DATABASE=shop -e MYSQL_USER=app -e MYSQL_PASSWORD=change-me -p 53306:3306 mysql:8.4
61362491f7e4c2d2638ce7f495e2e82c56ea70562f66e520de1ba7c0c24eefd8

It was ready for connections after about 20 seconds (18 and 24 in our two runs): the container's log shows it first starting a temporary server to create the database and user, then restarting. From Python, with SQLAlchemy 2.1.9 and PyMySQL 1.2.4 installed by pip install sqlalchemy pymysql, this script reads the connection string from an environment variable, creates a table, adds four rows and runs a query:

import os
 
from sqlalchemy import create_engine, text
 
engine = create_engine(os.environ["MYSQL_URL"], pool_pre_ping=True)
 
with engine.begin() as conn:
    print(conn.execute(text("SELECT VERSION(), @@max_connections")).one())
    conn.execute(text("""
        CREATE TABLE IF NOT EXISTS orders (
            id INT AUTO_INCREMENT PRIMARY KEY,
            region VARCHAR(20) NOT NULL,
            amount DECIMAL(10, 2) NOT NULL,
            ordered_on DATE NOT NULL
        )
    """))
    conn.execute(
        text("INSERT INTO orders (region, amount, ordered_on) VALUES (:r, :a, :d)"),
        [
            {"r": "North", "a": 120.00, "d": "2026-11-02"},
            {"r": "North", "a": 80.50, "d": "2026-11-17"},
            {"r": "East", "a": 310.00, "d": "2026-11-09"},
            {"r": "West", "a": 45.25, "d": "2026-11-21"},
        ],
    )
 
with engine.connect() as conn:
    rows = conn.execute(text("""
        SELECT region, COUNT(*) AS orders, SUM(amount) AS total
        FROM orders GROUP BY region ORDER BY total DESC
    """))
    for row in rows:
        print(row)
$ MYSQL_URL="mysql+pymysql://app:change-me@127.0.0.1:53306/shop" python try_mysql.py
('8.4.13', 151)
('East', 1, Decimal('310.00'))
('North', 2, Decimal('200.50'))
('West', 1, Decimal('45.25'))

The string is driver, user, password, host, port and database; a password containing @, : or / must be URL-encoded, as our connection string guide shows for Postgres. The session was encrypted without any setup (MySQL reported the cipher TLS_AES_256_GCM_SHA384), and MySQL 8.4 allows 151 connections by default. Idle, the container used about 437 MiB of memory, the number to keep in mind for the small free tiers above. Then we stopped it, and --rm removed it:

$ docker stats --no-stream --format "{{.Name}} {{.MemUsage}}" mysql-local
mysql-local 437.7MiB / 31.21GiB
$ docker stop mysql-local
mysql-local
$ docker ps -a --filter name=mysql-local --format "{{.Names}}"
(no output)

That also deleted the data. To keep it between runs, add a volume, -v mysql-data:/var/lib/mysql, the directory "where MySQL by default will write its data files", as the image's documentation puts it. The other catch is that only your machine can reach it, so a hosted dashboard or a colleague can't.

Connecting a dashboard to a free MySQL database

Fastero is where you use the MySQL database you run elsewhere. Fastero is an AI and data platform where people and AI agents work together on a team's data, and once your MySQL database is online you connect it in the app and:

  • Ask questions of it in the AI chat, which writes and runs the SQL and builds dashboards and reports. AI is paid from a balance, with $20 to start.
  • Build dashboards colleagues open with their own login; viewers are free.
  • Run SQL cells in notebooks on the saved connection, with its stored credentials; the rows land in Python as a pandas DataFrame named after the cell.

A Sales overview dashboard in Fastero with four figures, revenue in the latest month $241,505, 77 orders, $2,918 average order value and a 5.3% cancellation rate, above a monthly revenue line chart from 2024 to 2026

A dashboard in Fastero, built on the sample data every new workspace starts with. Sample data.

Two practical notes. Fastero runs in the cloud, so the database has to accept connections from outside: Oracle's Always Free DB system doesn't, and a laptop's Docker container doesn't. And give it a MySQL user that can only SELECT, as in step 1 of our guide to read-only MySQL access. The Free plan has no end date and needs no card; Pro is $20 per editor a month (pricing). More on connecting MySQL to dashboards and BI tools for MySQL.

FAQ

Is there a free MySQL database online?

Yes. TiDB Cloud Starter (MySQL-compatible, 5 GiB per instance), Oracle's Always Free MySQL HeatWave (50 GB), Railway's Free plan and Clever Cloud's 10 MB DEV plan have no end date. AWS RDS and Google Cloud SQL are trials, and MySQL in Docker on your own machine is free with no limits.

Is Aiven for MySQL still free?

No. Aiven stopped creating free MySQL services on 6 November 2026 and will power off the remaining ones and delete their data and backups on 21 December 2026. Its cheapest MySQL plan is Developer at $5 a month; its free tier now covers PostgreSQL, Kafka, OpenSearch and Valkey.

Does PlanetScale have a free tier?

No. PlanetScale retired its Hobby plan on 8 April 2024. Its MySQL-compatible Vitess databases start at $39 a month for the smallest cluster, plus storage.

Is the AWS RDS free tier still 12 months?

Not for accounts opened since 15 July 2025. They get $100 to $200 of credits and can run RDS for MySQL on db.t3.micro or db.t4g.micro on the Free plan for up to 6 months, or until the credits run out. Older accounts had 12 months of free use from sign-up, which has now run out for all of them.

What is the MySQL HeatWave free tier?

Every Oracle Cloud account can create one Always Free MySQL HeatWave DB system with 50 GB of storage, a one-node HeatWave cluster and one day of automatic backups. It's reachable only from inside Oracle Cloud's network, and signing up needs a card for identity checks.

Which free MySQL host allows remote access?

TiDB Cloud Starter gives a public endpoint, over TLS on port 4000, and freesqldatabase.com says it allows remote connections. Oracle's Always Free DB system doesn't accept connections from the internet.

Where can I practice MySQL for free?

On your own machine, with mysql:8.4 in Docker as above. For a hosted database to practice on, Clever Cloud's DEV plan and TiDB Cloud Starter need no card.

Sources

Read on 1 December 2026:


Try Fastero free: connect your MySQL database, ask questions of it and build dashboards your team opens with their own login. No credit card required.

Ready to try it yourself?

Connect your database, ask questions in plain English, and get live dashboards — in under 2 minutes. No credit card required.

Follow Fastero on LinkedIn for new articles and examples.