Error Explanation
This error means that your hosting provider limits you to only one database, and you've reached that limit. If you need to create another database, you'll need to either delete an existing one or upgrade your hosting plan.
Understanding the Database Limit
Most shared hosting plans restrict the number of databases to manage server resources. This guide will help you work within or overcome this limitation.
Quick Solution Path
- Check what databases you currently have
- Reuse existing database with new tables
- Backup and delete unused database
- Upgrade hosting plan if needed
Check Your Current Databases
If you already have a database, check its status before creating a new one.
Using cPanel
1 Log in to cPanel
Access your hosting control panel.
2 Go to MySQL Databases
Navigate to the database section in cPanel.
3 Look for Existing Databases
Check the list of current databases.
4 Delete Unused Database
If there's an unused database, you can delete it to free up space.
Using SSH (For VPS/SSH Users)
Run:
SSH Command
mysql -u root -p -e "SHOW DATABASES;"
Example Output:
Expected Output
+--------------------+
| Database |
+--------------------+
| information_schema |
| existing_db |
+--------------------+
If there's only one database, and you need another, move to Solution 2.
Reuse the Existing Database
If your plan only allows one database, you can reuse it by creating new tables instead of a new database.
Create a New Table in the Existing Database
SQL Command
CREATE TABLE my_new_table (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255),
email VARCHAR(255)
);
This allows you to store new data without creating a new database.
Alternative: Use Table Prefixes
For multiple applications in one database, use prefixes:
CREATE TABLE wp_users (...);
CREATE TABLE joomla_users (...);
CREATE TABLE custom_app_data (...);
Backup and Delete an Unused Database
If you no longer need your current database, you can delete it and create a new one.
Backup Your Database Before Deleting
Using mysqldump (Command Line)
mysqldump -u root -p existing_db > backup.sql
or use phpMyAdmin:
1 Go to phpMyAdmin
Access through cPanel or direct URL.
2 Select the database
Choose the database you want to backup.
3 Click "Export" > "Quick" > "Go"
Use the quick export method.
4 Save the .sql file
Download the backup to your computer.
Delete the Current Database
cPanel Method
1 Go to cPanel > MySQL Databases
2 Select the database and click "Delete"
Manual SQL Command
SQL Delete Command
DROP DATABASE existing_db;
Now you can create a new database.
> Important Warning
Always backup your database before deleting. Once deleted, data recovery may not be possible.
Upgrade Your Hosting Plan
If you need more than one database, contact your hosting provider and upgrade to a higher plan.
Hosting Plans That Support Multiple Databases
| Hosting Type | Database Limit | Recommended for |
|---|---|---|
| Shared Hosting (Basic Plan) | 1 Database | Small websites |
| Shared Hosting (Advanced Plan) | 5-10 Databases | Multiple websites |
| VPS Hosting | Unlimited | High-performance apps |
| Dedicated Server | Unlimited | Large-scale projects |
Contact support to increase your database limit.
Summary of Fixes
| Issue | Fix |
|---|---|
| Already using 1 database | Check & reuse the existing database |
| Need another database | Delete unused database & create a new one |
| Need more databases | Upgrade hosting plan |
| Want to use multiple databases in one? | Create new tables instead |
Final Recommendation
Now you can manage your databases effectively! For most small to medium websites, using multiple tables within a single database is the most efficient solution.


