Era Host hosting
EraHost – Free Domain, Cheap Hosting!
Client Area
Support 24/7
Menu

Fix: "0 Databases Allowed" Error in Hosting Plan

4 min read
04.11.2025

Understanding the Error

This error means your hosting plan does not allow database creation. Your current hosting package has a limit of 0 databases, preventing you from creating or managing MySQL/MariaDB databases.

0 Databases Allowed Hosting
Zero-DB plan — upgrade, remote DB, or flat-file CMS.

For related plan-limit topics, see 2GB Hosting — What Kind of Website Fits?, Bandwidth Limit Exceeded, and Error 508 — Resource Limit Reached.

Quick Solution Path

  1. Verify your hosting plan features
  2. Upgrade to a plan with database support
  3. Use remote database as alternative
  4. Try SQLite for file-based database

Check If Your Hosting Plan Supports Databases

Since your hosting limit is 0 databases, check if your provider allows database creation.

Check in cPanel

Step-by-Step Verification

Log in to cPanel.
Go to MySQL Databases.
Look for the section "Current Databases".
If you see "0 of 0 databases used", your plan does not allow databases.

Check Your Hosting Plan

Go to your hosting provider's dashboard and check your plan details under "Features" or "Database Limit."

Note: If your plan supports databases but shows "0," contact support. If your plan does NOT support databases, move to Solution 2.
Linux Hosting
Reliable and fast web hosting!
  • Free domain
  • Modern servers
  • NVMe disks
  • 7-day free trial
Linux Hosting

Upgrade Your Hosting Plan

If your plan does not include databases, you need to upgrade.

Hosting Plans That Support Databases

Hosting Type Database Limit Recommended for
Basic Free Hosting 0 Databases Static websites only (no CMS)
Shared Hosting (Basic Plan) 1-5 Databases WordPress, Joomla, small websites
Shared Hosting (Advanced Plan) 10+ Databases Multiple websites or CMS
VPS Hosting Unlimited High-performance applications
Dedicated Server Unlimited Large-scale projects

Contact your hosting provider to upgrade and enable database support.

Alternative: Free Hosting with Databases

Some free hosting providers offer limited database support:

  • InfinityFree: 400 MySQL databases
  • 000webhost: 2 MySQL databases
  • AwardSpace: 1 MySQL database

Use a Remote Database (If Allowed)

If your hosting does not allow local databases, you can use an external MySQL database from another provider.

Configure Remote Database Connection

Once you have a remote MySQL database:

Connection Steps

Find your remote database host IP.
Use these credentials in your application's config file:

PHP Database Connection

$servername = "your-remote-db-host.com";
$username = "your_db_user";
$password = "your_db_password";
$dbname = "your_db_name";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

Ensure Remote MySQL is Allowed

If your hosting provider blocks remote MySQL connections, ask them to whitelist your remote database IP.

Now you can use a database without needing one on your hosting account.

Performance Note: Remote databases may have slower response times than local databases due to network latency.

Use a Flat File Database (If No MySQL Allowed)

If your hosting does not support MySQL, you can use SQLite (a file-based database).

Create an SQLite Database

Use this in PHP:

PHP SQLite Example

// Create or open SQLite database
$db = new SQLite3('my_database.db');

// Create a table
$db->exec("CREATE TABLE IF NOT EXISTS users (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    name TEXT NOT NULL,
    email TEXT NOT NULL UNIQUE,
    created_at DATETIME DEFAULT CURRENT_TIMESTAMP
)");

// Insert data
$db->exec("INSERT INTO users (name, email) VALUES ('John Doe', 'john@example.com')");

// Query data
$result = $db->query("SELECT * FROM users");
while ($row = $result->fetchArray()) {
    echo "Name: " . $row['name'] . " - Email: " . $row['email'];
}

This works without needing a MySQL database!

Other Flat File Database Options

  • CSV files: For simple data storage
  • JSON files: For structured data
  • XML files: For hierarchical data
  • PHP array files: For configuration data

Summary of Fixes

Issue Fix
Plan does not allow databases Upgrade hosting plan
Need MySQL but hosting doesn't support it Use a remote MySQL database
No MySQL, but need a database Use SQLite instead
Plan supports databases but shows 0 Contact hosting support

Final Recommendation

Now you can decide the best way to use a database for your website! For most dynamic websites, upgrading to a hosting plan with database support is the best long-term solution.

Frequently asked questions
Most hosts have a tier above starter at +$1-3/month with 1-5 databases. Check the plan comparison page. Sometimes upgrading on existing account is cheaper than switching to a new host. Worth the upgrade if you can — static-only sites limit your options long-term.
Yes if your hosting allows outbound MySQL connections (3306). The web code connects to `db.yourvps.com:3306`. Pros: cheap VPS for DB ($5/mo covers it). Cons: latency between hosts (50-100 ms per query) adds up fast for chatty apps. For static-leaning sites with occasional DB queries, fine; for heavy WordPress, too slow.
Kirby, Grav, Pico, Hugo (static-generated). All store content in flat files (YAML, Markdown, JSON). No database required. Good for blogs, portfolios, documentation sites. Cons: slower for large content libraries (file IO instead of DB indexes), harder multi-user editing. For small sites, often the right choice anyway.
No, in most cases. SQLite is a file in your account, not a server-side database. Hosting plan database limits typically refer to MySQL/MariaDB. SQLite-using apps (some CMSes, lightweight admin tools) work fine on 0-DB plans. Performance limitations of SQLite for concurrent writes still apply.
Related articles
WordPress: Server Doesn't Have ImageMagick or GD Installed/Enabled
Fix: "You Are Using Your Maximum Allotment (1) of MariaDB/MySQL Databases"
How to Repair Horde Database (cphorde) in cPanel